class_docstr: Represents the value of a `RaggedTensor`.
  
  Warning: `RaggedTensorValue` should only be used in graph mode; in
  eager mode, the `tf.RaggedTensor` class contains its value directly.
  
  See `tf.RaggedTensor` for a description of ragged tensors.
class_docstr_tok: ["Represents","the","value","of","a","`","RaggedTensor","`",".","Warning",":","`","RaggedTensorValue","`","should","only","be","used","in","graph","mode",";","in","eager","mode",",","the","`","tf.RaggedTensor","`","class","contains","its","value","directly",".","See","`","tf.RaggedTensor","`","for","a","description","of","ragged","tensors","."]
docstr: Returns this ragged tensor value as a nested Python list.
docstr_tok: ["Returns","this","ragged","tensor","value","as","a","nested","Python","list","."]
code: def to_list(self):
      """Returns this ragged tensor value as a nested Python list."""
      if isinstance(self._values, RaggedTensorValue):
          values_as_list = self._values.to_list()
      else:
          values_as_list = self._values.tolist()
      return [
          values_as_list[self._row_splits[i] : self._row_splits[i + 1]]
          for i in range(len(self._row_splits) - 1)
      ]
  
file_path: tensorflow/tensorflow/python/ops/ragged/ragged_tensor_value.py
imports: import numpy
  from tensorflow.python.ops.ragged.row_partition import RowPartition
  from tensorflow.python.util import dispatch
  from tensorflow.python.util.tf_export import tf_export
label_desc: Use image node_id 9 for calling the RaggedTensorValue obj's underlying member method code with example usage: obj.to_list() and returns: unknown