<commit_before>TensorFlow Inferencing APIs
============================

Utilities
---------

The following APIs simplify your code when working with
`tflite::MicroInterpreter
<https://github.com/tensorflow/tflite-micro/blob/main/tensorflow/lite/micro/micro_interpreter.h>`_.

`[utils.h source] <https://github.com/google-coral/coralmicro/blob/master/libs/tensorflow/utils.h>`_

.. doxygenfile:: tensorflow/utils.h
   :sections: briefdescription detaileddescription innernamespace innerclass define func public-attrib public-func public-slot public-static-attrib public-static-func public-type


Image classification
--------------------

The following APIs assist when running image classification models on a
microcontroller with an Edge TPU.

**Example** (from `examples/classify_image/`):

.. literalinclude:: ../examples/classify_image/classify_image.cc
   :start-after: [start-sphinx-snippet:classify-image]
   :end-before: [end-sphinx-snippet:classify-image]

`[classification.h source] <https://github.com/google-coral/coralmicro/blob/master/libs/tensorflow/classification.h>`_

.. doxygenfile:: tensorflow/classification.h
   :sections: briefdescription detaileddescription innernamespace innerclass define func public-attrib public-func public-slot public-static-attrib public-static-func public-type


Object detection
----------------

The following APIs assist when running object detection models on a
microcontroller with an Edge TPU.

**Example** (from `examples/detect_image/`):

.. literalinclude:: ../examples/detect_image/detect_image.cc
   :start-after: [start-sphinx-snippet:detect_image]
   :end-before: [end-sphinx-snippet:detect_image]

`[detection.h source] <https://github.com/google-coral/coralmicro/blob/master/libs/tensorflow/detection.h>`_

.. doxygenfile:: tensorflow/detection.h
   :sections: briefdescription detaileddescription innernamespace innerclass define func public-attrib public-func public-slot public-static-attrib public-static-func public-type


Pose estimation
----------------

The following APIs assist when running pose estimation with PoseNet.

`[posenet_decoder_op.h source] <https://github.com/google-coral/coralmicro/blob/master/libs/tensorflow/posenet_decoder_op.h>`_

.. doxygenfile:: tensorflow/posenet_decoder_op.h

`[posenet.h source] <https://github.com/google-coral/coralmicro/blob/master/libs/tensorflow/posenet.h>`_

.. doxygenfile:: tensorflow/posenet.h<commit_msg>fix type in include statement<commit_after>TensorFlow Inferencing APIs
============================

Utilities
---------

The following APIs simplify your code when working with
`tflite::MicroInterpreter
<https://github.com/tensorflow/tflite-micro/blob/main/tensorflow/lite/micro/micro_interpreter.h>`_.

`[utils.h source] <https://github.com/google-coral/coralmicro/blob/master/libs/tensorflow/utils.h>`_

.. doxygenfile:: tensorflow/utils.h
   :sections: briefdescription detaileddescription innernamespace innerclass define func public-attrib public-func public-slot public-static-attrib public-static-func public-type


Image classification
--------------------

The following APIs assist when running image classification models on a
microcontroller with an Edge TPU.

**Example** (from `examples/classify_image/`):

.. literalinclude:: ../examples/classify_image/classify_image.cc
   :start-after: [start-sphinx-snippet:classify-image]
   :end-before: [end-sphinx-snippet:classify-image]

`[classification.h source] <https://github.com/google-coral/coralmicro/blob/master/libs/tensorflow/classification.h>`_

.. doxygenfile:: tensorflow/classification.h
   :sections: briefdescription detaileddescription innernamespace innerclass define func public-attrib public-func public-slot public-static-attrib public-static-func public-type


Object detection
----------------

The following APIs assist when running object detection models on a
microcontroller with an Edge TPU.

**Example** (from `examples/detect_image/`):

.. literalinclude:: ../examples/detect_image/detect_image.cc
   :start-after: [start-sphinx-snippet:detect-image]
   :end-before: [end-sphinx-snippet:detect-image]

`[detection.h source] <https://github.com/google-coral/coralmicro/blob/master/libs/tensorflow/detection.h>`_

.. doxygenfile:: tensorflow/detection.h
   :sections: briefdescription detaileddescription innernamespace innerclass define func public-attrib public-func public-slot public-static-attrib public-static-func public-type


Pose estimation
----------------

The following APIs assist when running pose estimation with PoseNet.

`[posenet_decoder_op.h source] <https://github.com/google-coral/coralmicro/blob/master/libs/tensorflow/posenet_decoder_op.h>`_

.. doxygenfile:: tensorflow/posenet_decoder_op.h

`[posenet.h source] <https://github.com/google-coral/coralmicro/blob/master/libs/tensorflow/posenet.h>`_

.. doxygenfile:: tensorflow/posenet.h
{'fraction_non_alphanumeric': 0.14479081214109926, 'fraction_numerical': 0.0, 'mean_word_length': 4.717467760844079, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 15, 'https://': 12, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2836008', 'n_tokens_mistral': 1527, 'n_tokens_neox': 1436, 'n_words': 293}