pytorch 中tensor.expand()和tensor.expand_as()函数详解tensor.expend()函数>>> import torch >>> a=torch.tensor([[2],[3],[4]]) >>> print(a.size()) torch.
確定! 回上一頁