tglite.op.precomputed_zeros

tglite.op.precomputed_zeros(ctx: TContext, id: int, encoder: Callable, num: int) Tensor

Generates a tensor of precomputed zero values encoded by the specified encoder, used for creating a batch of zero time encodings.

Parameters:
  • ctx

  • id

  • encoder

  • num

Returns:

precomputed zero-initialized tensor of the given size