transpose 函数的本意是将两个相应的维度进行变换,比如如下的这个tensor矩阵import torchX = torch.Tensor([[1,2,3],[4,5,6]])X = X.transpose(0, 1)print(X)输出结果 ...
確定! 回上一頁