【发布时间】:2020-07-05 21:28:51
【问题描述】:
我正在尝试对通道维度进行最大池化:
class ChannelPool(nn.Module):
def forward(self, input):
return torch.max(input, dim=1)
但我得到了错误
AttributeError: 'torch.return_types.max' object has no attribute 'dim'
【问题讨论】:
标签: python computer-vision pytorch