class_docstr: Class for sparse matrix.
class_docstr_tok: ["Class","for","sparse","matrix","."]
docstr: Returns the values of the non-zero elements.
  
  Returns
  -------
  torch.Tensor
      Values of the non-zero elements
docstr_tok: ["Returns","the","values","of","the","non-zero","elements",".","Returns","--","--","--","-","torch.Tensor","Values","of","the","non-zero","elements"]
code: def val(self) -> torch.Tensor:
      """Returns the values of the non-zero elements.
  
      Returns
      -------
      torch.Tensor
          Values of the non-zero elements
      """
      return self.c_sparse_matrix.val()
  
imports: from typing import Optional, Tuple
  import torch
label_desc: Use image node_id 3 for calling the SparseMatrix obj's underlying member method code with example usage: obj.val() and returns: self