【Pytorch问题】RuntimeError: “max_pool2d“ not implemented for ‘Long‘
问题描述将如下input作为torch.MaxPool2d的输入input=torch.tensor([[1,2,0,3,1],[0,1,2,3,1],[1,2,1,0,0],[5,2,3,1,1],[2,1,0,1,1]])input=torch.reshape(input,(-1,1,5,5))报错:RuntimeError:"max_pool2d"notimplementedfor'Long