Enumeration

OmniTransformerFeatureFlags

Declaration

flags Omni.TransformerFeatureFlags

Description

A set of flags indicating the properties of a transformer.

The unused bits are reserved for future use and must be cleared.

Members

OMNI_TRANSFORMER_FEATURE_FLAGS_STATELESS

The transformer is stateless.

A stateless transformer does not maintain state data that needs to be carried over between batches. The system can instruct the transformer to produce output batches in any order.

  • Value: 1
  • Available since: 0.0
OMNI_TRANSFORMER_FEATURE_FLAGS_STATE_SERIALIZABLE

The transformer supports state serialization.

Ignored if STATELESS is set.

If this flag is set, the system is allowed to call Omni.TransformerState.serialize_async and Omni.TransformerState.deserialize_from_async.

  • Value: 2
  • Available since: 0.0