test.py 119 Bytes
Newer Older
雍大凯's avatar
雍大凯 committed
1
2
3
4
5
6
7
import torch

x = torch.rand(2, 3)
y = torch.rand(3, 3)
z = [x, y]
z = torch.as_tensor(z, device="cuda")
print(z.shape)