activationDataType property

ActivationDataType? activationDataType
final

Activation type for the native LiteRT-LM engine's text decoder. Null leaves it to the model file; when set, it overrides LiteRT-LM's own choice (float16 on GPU by default). Set ActivationDataType.float32 when a GPU writes wrong digits (LiteRT-LM#2814, #3012). The vision and audio encoders keep the model's own type; MediaPipe, ONNX, built-in AI and the web engines ignore it.

Implementation

final ActivationDataType? activationDataType;