Skip to content

Latest commit

 

History

History
86 lines (67 loc) · 2 KB

File metadata and controls

86 lines (67 loc) · 2 KB

description: Gets a sparse tensor for path p. (deprecated)

s2t.get_sparse_tensor

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.

Args

`t` The Prensor to extract tensors from.
`p` The path to a leaf node in `t`.
`options` Currently unused.

Returns

A sparse tensor containing values of the leaf node, preserving the structure along the path. Raises an error if the path is not found.