MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / values

Method values

tensorflow/python/ops/ragged/ragged_tensor.py:848–869  ·  view source on GitHub ↗

The concatenated rows for this ragged tensor. `rt.values` is a potentially ragged tensor formed by flattening the two outermost dimensions of `rt` into a single dimension. `rt.values.shape = [nvals] + rt.shape[2:]` (where `nvals` is the number of items in the outer two dimensions o

(self)

Source from the content-addressed store, hash-verified

846
847 @property
848 def values(self):
849 """The concatenated rows for this ragged tensor.
850
851 `rt.values` is a potentially ragged tensor formed by flattening the two
852 outermost dimensions of `rt` into a single dimension.
853
854 `rt.values.shape = [nvals] + rt.shape[2:]` (where `nvals` is the
855 number of items in the outer two dimensions of `rt`).
856
857 `rt.ragged_rank = self.ragged_rank - 1`
858
859 Returns:
860 A potentially ragged tensor.
861
862 #### Example:
863 ```python
864 >>> rt = ragged.constant([[3, 1, 4, 1], [], [5, 9, 2], [6], []])
865 >>> print rt.values
866 tf.Tensor([3, 1, 4, 1, 5, 9, 2, 6])
867 ```
868 """
869 return self._values
870
871 @property
872 def row_splits(self):

Callers 12

_scope_valsMethod · 0.45
dequeueMethod · 0.45
dequeue_manyMethod · 0.45
dequeue_up_toMethod · 0.45
_scope_valsMethod · 0.45
_eager_mode_decoratorFunction · 0.45
wrapped_intermediatesMethod · 0.45
variablesMethod · 0.45
trainable_variablesMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected