torch.Tensor.to\_sparse ======================= .. currentmodule:: torch .. automethod:: Tensor.to_sparse