注:借鉴整理,仅供自学,侵删 squeeze()和unsqueeze()函数 tensor.expand()和tensor.expand_as()函数 expand_as 输入是tensor,expand输入是数组 torch.cat() for i in range () view() contiguous() OrderedDict() for in zip() torch.argmax() tensor.repeat() torch.linspace()