|  View source on GitHub | 
Samples num_windows segments from sequence with linearly spaced offsets.
tfm.vision.preprocess_ops_3d.sample_linspace_sequence(
    sequence: tf.Tensor, num_windows: int, num_steps: int, stride: int
) -> tf.Tensor
The samples are concatenated in a single tf.Tensor in order to have the same
format structure per timestep (e.g. a single frame). If num_steps * stride
is bigger than the number of timesteps, the sequence is repeated. This
function can be used in evaluation in order to extract enough segments to span
the entire sequence.
| Returns | |
|---|---|
| A single tf.Tensorwith first dimensionnum_windows*num_steps. The
tensor contains the concatenated list ofnum_windowstensors which offsets
have been linearly spaced from input. |