Commit graph

5 commits

Author SHA1 Message Date
Esun Kim
d7f46b6fb7
[Doc] Fix typos (#3446)
* Fix typos

* Typos

* More

* Last
2026-02-11 17:18:49 +00:00
Ryan Kuester
c3c78cb7ea
docs(compression): add MNIST compression tutorial (#3224)
Add a comprehensive Jupyter notebook tutorial demonstrating TFLM's
compression pipeline using the MNIST dataset. The tutorial covers weight
clustering with TensorFlow Model Optimization toolkit, post-training
quantization, and TFLM's LUT-based compression.

Update documentation to reference the new tutorial from the main README,
Python interpreter guide, and compression documentation.

BUG=#2636

Co-authored-by: Esun Kim <veblush@google.com>
2025-10-17 10:01:13 -07:00
Ryan Kuester
93ebaa9ca4
feat(compression): integrate automatic FlatBuffer alignment (#3177)
Enhance compress() function to automatically apply proper
FlatBuffer alignment after compression, eliminating the need for
users to manually run tflite_flatbuffer_align as a separate step.
Use the C++ alignment wrapper internally, as the Python
flatbuffers library doesn't respect force_align schema
attributes.

Keep the API unchanged - compress() still returns a bytearray,
but now the output is properly aligned for the TFLM interpreter.
Update documentation, and build dependencies of the Python
package.

BUG=#3125
2025-09-03 22:19:19 +00:00
Ryan Kuester
cc09a49b9b
docs: update compression documentation (#3020)
Clarify the usage of `MicroContext::AllocateDecompressionScratchBuffer`
and`tflite::micro::GetTensorData` for handling decompressed tensor
data.

Add a section on alternate decompression memory regions,
explaining how to specify and use specialized memory for
decompression.

Update instructions for compressing models using a YAML
specification.

Simplify the model compression and alignment command examples.

Spin off new Generic Benchmark Application documentation.

BUG=part of #2636
2024-12-17 23:37:12 +00:00
David Davis
e3f6dc1ff1
Compression documentation (#2711)
@tensorflow/micro

Add documentation describing some compression/decompression internals and makefile build procedures.

bug=#2710
2024-10-03 17:45:00 +00:00