torch.Tensor.diagflat ===================== .. currentmodule:: torch .. automethod:: Tensor.diagflat