pytorch torch.expand和torch.repeat的区别详解1.torch.expand 函数返回张量在某一个维度扩展之后的张量,就是将张量广播到新形状.函数对返回的张量不会分配新内存, ...
確定! 回上一頁