PyTorch how to do gathers over multiple dimensions

后端 未结 0 1733
后悔当初
后悔当初 2021-01-26 07:35

I\'m trying to find a way to do this without for loops.

Say I have a multi-dimensional tensor t0:

bs = 4
seq = 10
v = 16
t0 = torch.rand((bs,          


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