📜  Tensor.expand_as - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:33.524000             🧑  作者: Mango

代码示例1
a = torch.rand(2, 3)
b = torch.rand(2,2, 3)
print('a:',a)
print('b:',b)
c = a.expand_as(b)
print('c:',c)