description: Gets a sparse tensor for path p. (deprecated)
View source on GitHub
|
Gets a sparse tensor for path p. (deprecated)
s2t.get_sparse_tensor(
t: s2t.Prensor,
p: s2t.Path,
options: calculate_options.Options = calculate_options.get_default_options()
) -> tf.SparseTensor
Warning: THIS FUNCTION IS DEPRECATED. It will be removed in a future version. Instructions for updating: Use the Prensor class method instead.
Note that any optional fields are not registered as dimensions, as they can't be represented in a sparse tensor.
| `t` | The Prensor to extract tensors from. |
| `p` | The path to a leaf node in `t`. |
| `options` | Currently unused. |
| A sparse 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