LostTech.TensorFlow : API Documentation

Type RaggedTensorValue

Namespace tensorflow.ragged

Parent PythonObjectContainer

Interfaces IRaggedTensorValue

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.

Methods

Properties

Public instance methods

object to_list_dyn()

Returns a nested Python `list` with the values for this `RaggedTensor`.

Requires that `rt` was constructed in eager execution mode.
Returns
object
A nested Python `list`.

Public properties

PropertyInfo dtype get; set;

The numpy dtype of values in this tensor.

object dtype_dyn get; set;

The numpy dtype of values in this tensor.

PropertyInfo flat_values get;

The innermost `values` array for this ragged tensor value.

object flat_values_dyn get;

The innermost `values` array for this ragged tensor value.

ValueTuple<PropertyInfo> nested_row_splits get;

The row_splits for all ragged dimensions in this ragged tensor value.

object nested_row_splits_dyn get;

The row_splits for all ragged dimensions in this ragged tensor value.

object PythonObject get;

int ragged_rank get;

The number of ragged dimensions in this ragged tensor value.

object ragged_rank_dyn get;

The number of ragged dimensions in this ragged tensor value.

PropertyInfo row_splits get; set;

The split indices for the ragged tensor value.

object row_splits_dyn get; set;

The split indices for the ragged tensor value.

object shape get;

A tuple indicating the shape of this RaggedTensorValue.

object shape_dyn get;

A tuple indicating the shape of this RaggedTensorValue.

PropertyInfo values get; set;

The concatenated values for all rows in this tensor.

object values_dyn get; set;

The concatenated values for all rows in this tensor.