Zeroing the diagonal of a matrix by multiplying by (1-I)

前端 未结 0 1842
再見小時候
再見小時候 2021-01-16 13:04

I have a tensor, lets say like this:

tensor([[2.7183, 0.4005, 2.7183, 0.5236],
    [0.4005, 2.7183, 0.4004, 1.3469],
    [2.7183, 0.4004, 2.7183, 0.5239],
            


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