如果不希望输入与输出共享数据,请使用 Tensor.clone ,例如 reshape_clone_x = x.reshape([-1]).clone() 。 在指定目标shape时存在一些技巧:.
確定! 回上一頁