How to efficiently pairwise pool a tensor by trace value in Pytorch?

前端 未结 0 1176
死守一世寂寞
死守一世寂寞 2021-02-01 02:59

I have a pytorch tensor T with shape (batch_size, window_size, filters, 3, 3) and I would like to pool the tensor by trace. Specifically I would like to obtain a tensor T_pooled

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