result = torch.sum(torch.stack([x, y, ...]), dim=0). Without stack: from functools import reduce result = reduce(torch.add, [x, y, ...]).
確定! 回上一頁