Skip to content

Latest commit

 

History

History
106 lines (74 loc) · 2.16 KB

File metadata and controls

106 lines (74 loc) · 2.16 KB

description: The value of the root.

s2t.RootNodeTensor

View source on GitHub

The value of the root.

s2t.RootNodeTensor(
    size: tf.Tensor
)

Args

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

Attributes

`is_repeated`
`size`

Methods

get_positional_index

View source

get_positional_index() -> tf.Tensor

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.