tglite.op.precomputed_times

tglite.op.precomputed_times(ctx: TContext, id: int, encoder: Callable, times: Tensor) Tensor

Encodes a tensor of time values using the provided encoder, leverage precomputed values if available in the context’s time table.

Parameters:
  • ctx

  • id

  • encoder

  • times

Returns:

a precomputed tensor of the given times