torch_brain.utils¶
Tokenizers¶
Create groups of latent tokens with timestamps. |
|
Adds start and end tokens to each unit. |
- create_linspace_latent_tokens(start, end, step, num_latents_per_step)[source]¶
Creates a sequence of latent tokens. Each token is defined by the latent index and the timestamps. The sequence is defined by the start and end time and the step size. The group of num_latents_per_step latents is repeated for each step.