s2t.RootNodeTensor

May 7, 2026 ยท View on GitHub

description: The value of the root.

s2t.RootNodeTensor

The value of the root.

`size` A scalar int64 tensor saying how many root objects there are.
`is_repeated`
`size`

Methods

get_positional_index

View source

Gets the positional index for this RootNodeTensor.

The positional index relative to the node's parent, and thus is always monotonically increasing at step size 1 for a RootNodeTensor.

Returns
A tensor of positional indices.