Add blocks of values to a tensor at specific locations in PyTorch

后端 未结 0 907
被撕碎了的回忆
被撕碎了的回忆 2021-01-05 06:08

I have a list of indeces:

indx = torch.LongTensor(
   [[ 0,  2,  0],
    [ 0,  2,  4],
    [ 0,  4,  0],
    [ 0, 10, 14],
    [ 1,  4,  0],
    [ 1,  8,  2],         


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