Get 2d indices for max and min in pytorch

后端 未结 0 2024
佛祖请我去吃肉
佛祖请我去吃肉 2021-02-18 20:41

lets say I have a tensor of shape [batchsize , 7 , 7] I wish to get for each sample in the batch the maximum two values with 2d indices + the minimum two values with 2d indices

相关标签:
回答
  • 消灭零回复
提交回复
热议问题