class_docstr: (Optionally batched) CSR Sparse Matrix.
class_docstr_tok: ["(","Optionally","batched",")","CSR","Sparse","Matrix","."]
code: def to_sparse_tensor(self):
      r = sm_ops.csr_sparse_matrix_to_sparse_tensor(
          self._matrix, type=self.dtype
      )
      return sparse_tensor.SparseTensor(
          indices=r.indices, values=r.values, dense_shape=r.dense_shape
      )
  
imports: import abc
  import collections
  from tensorflow.python.eager import context
  from tensorflow.python.framework import cpp_shape_inference_pb2
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import ops
  from tensorflow.python.framework import sparse_tensor
  from tensorflow.python.framework import tensor
  from tensorflow.python.framework import tensor_shape
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import math_ops
  from tensorflow.python.ops import resource_variable_ops
  from tensorflow.python.ops.linalg.sparse import gen_sparse_csr_matrix_ops
  from tensorflow.python.ops.linalg.sparse.gen_sparse_csr_matrix_ops import *
label_desc: Use image node_id 5 for calling the CSRSparseMatrix obj's underlying member method code with example usage: obj.to_sparse_tensor() and returns: sparse_tensor