How to skipping zeros values when minus a numpy array to an torch.sparse

后端 未结 0 1604
别跟我提以往
别跟我提以往 2021-02-03 11:38

I have a numpy array:

a=[ 1 2 3

4 5 6

7 8 9]

and a torch.sparse tensor:

b=[ 1 0 0

0 0 6

0 0 9]

a-

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