You can use reduce import torch as T from functools import reduce reduce(lambda x,y: T.cat((x,y)), list_tensor[:-1]).
確定! 回上一頁