•
pytorch-doc-2.5中文文档
首页
/
pytorch文档
/
torch.Tensor.diag
torch.Tensor.diag
Tensor.
diag
(
diagonal
=
0
)
→
Tensor
参见
torch.diag()
本页目录