torch.Tensor.diag
=================

.. currentmodule:: torch

.. automethod:: Tensor.diag