a = ByteTensor(40,500) #inititialized to some random values print(torch.sum(a)) >>> 8186 print(torch.sum(torch.sum(a, dim=1))) >>> 5626.
確定! 回上一頁