將兩個list對應值相乘後獲得的list值再相加

from functools import reduce import torch a = torch.tensor([1, 4]) b = torch.tensor([4, 7]) list1 = [a, b] c = torch.tensor([7, 8]) d = torch.tensor([6, 12]) list2 = [c, d] output = reduce(lambda 
相關文章
相關標籤/搜索