create tensor in specific indexes without loops

前端 未结 0 1546
梦如初夏
梦如初夏 2021-01-03 05:36

I have a tensor t1 (with size 2nX2n), and I need to create tensor t2 (with size 2n) with the values of t1 in [i,(i+n) mod 2n] for each row i.

for example if I have

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