TORCH MAXIMUM|小空笔记
https://xknote.com/blog/253139.html05.11.2021 · 标签:__ torch tensor max TORCH MAXIMUM maximum print import torch a = torch.tensor((1, 2, -1)) b = torch.tensor((3, 0, 4)) torch.maximum(a, b) 结果应该是: tensor([3, 2, 4]) AttributeError: module 'torch' has no attribute 'maximum'