tensor expand as

Solutions on MaxInterview for tensor expand as by the best coders in the world

showing results for - "tensor expand as"
Eustace
17 Jan 2019
1a = torch.rand(2, 3)
2b = torch.rand(2,2, 3)
3print('a:',a)
4print('b:',b)
5c = a.expand_as(b)
6print('c:',c)
7
similar questions
queries leading to this page
tensor expand as