将两个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 
相关文章
相关标签/搜索