Sorting a Pytorch Tensor by Trace

后端 未结 0 1732
我在风中等你
我在风中等你 2020-12-11 23:34

I have a (100,64,22,3,3) shaped pytorch tensor, and I would like to sort along axis=0 by the trace of the (3,3) components. The code I have below works, but it is very slow

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