Export¶
TFLite export and C header generation for edge deployment.
compressionkit.export.tflite.export_encoder_tflite(encoder, *, rep_dataset, output_dir, tflite_name='encoder.tflite', header_name='encoder.h', c_array_name='encoder', quantization='INT8', io_type='int8')
¶
Export encoder to INT8 TFLite and C header using helia_edge.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
encoder
|
Model
|
Keras encoder model to export. |
required |
rep_dataset
|
ndarray
|
Representative dataset array for calibration. |
required |
output_dir
|
Path
|
Directory to write |
required |
tflite_name
|
str
|
Filename for the TFLite model. |
'encoder.tflite'
|
header_name
|
str
|
Filename for the C header. |
'encoder.h'
|
c_array_name
|
str
|
Name for the C array in the header. |
'encoder'
|
quantization
|
str
|
Quantization mode (e.g. |
'INT8'
|
io_type
|
str
|
I/O type string (e.g. |
'int8'
|
Returns:
| Type | Description |
|---|---|
tuple[Path, Path]
|
Tuple of |