What does this code in PyTorch do? How can I express it with tensorflow

前端 未结 0 1760
既然无缘
既然无缘 2020-12-10 04:14

I found a code that would solve my problem that looks like this:

(self.conv_diag(input_tensor.diagonal(dim1=2, dim2=3))).diag_embed(dim1=2, dim2=3)

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