Skip to main content

Module load_litert_bytes

Module load_litert_bytes 

Source
Expand description

Cold-path Google LiteRT (TFLite / FlatBuffers) model file validation.

LiteRT / TFLite models use the FlatBuffers binary format with the canonical 4-byte file identifier TFL3 at byte offset 4..8.

Structs§

LiteRtFileMeta

Enums§

LiteRtLoadError

Constants§

LITER_TFLITE_MAGIC
Canonical FlatBuffers 4-byte identifier for Google LiteRT / TFLite models.

Functions§

load_litert_file
Load entire LiteRT / TFLite file into memory (cold path).
validate_litert_bytes
Validate Google LiteRT / TFLite FlatBuffers bytes without reading disk.