output = torch.tensor([[[-2.4210, -2.8106, -1.0321]],
[[-2.4162, 1.4910, 2.2420]],
[[-0.9467, -3.4340, 1.5137]],
[[-1.1759, 2.3805, -0.1223]]
.data.max(2, keepdim=True)[1] 以及torch.max(output, 2, keepdim=True)[1]
最新推荐文章于 2022-12-06 17:28:24 发布