View source on GitHub |
Calculates the full beams for a TensorArray
.
tfa.seq2seq.gather_tree_from_array(
t: tfa.types.TensorLike
,
parent_ids: tfa.types.TensorLike
,
sequence_length: tfa.types.TensorLike
) -> tf.Tensor
Returns | |
---|---|
A Tensor which is a stacked TensorArray of the same size and type as
t and where beams are sorted in each Tensor according to
parent_ids .
|