AttributeError: module 'torch' has no attribute 'maximum ...
discuss.pytorch.org › t › attributeerror-moduleSep 29, 2020 · import torch x = torch.tensor([[1],[2],[3],[5]],dtype = torch.float) y = torch.tensor([[1],[2],[3],[4]],dtype = torch.float) print(torch.maximum(x,y)) But I got AttributeError: module ‘torch’ has no attribute ‘maximum’. Torch does have maximum function which returns the elementwise maximum of two tensors. Where did I get wrong?