description: Get a ragged tensor for a path. (deprecated)
View source on GitHub
|
Get a ragged tensor for a path. (deprecated)
s2t.get_ragged_tensor(
t: s2t.Prensor,
p: s2t.Path,
options: calculate_options.Options = calculate_options.get_default_options()
) -> tf.RaggedTensor
Warning: THIS FUNCTION IS DEPRECATED. It will be removed in a future version. Instructions for updating: Use the Prensor class method instead.
All steps are represented in the ragged tensor.
| `t` | The Prensor to extract tensors from. |
| `p` | the path to a leaf node in `t`. |
| `options` | used to pass options for calculating ragged tensors. |
| A ragged tensor containing values of the leaf node, preserving the structure along the path. Raises an error if the path is not found. |
View source on GitHub