tflite-micro/third_party/hexagon
RJ Ascani a0f8970856
Generate op table and subgraph invoke functions (#2176)
As the next step in the codegen experiment, we want to generate the invoke calls for each layer. This is slightly challenging with the existing sources, as kernels only expose a registration function, not their individual Eval functions. In an effort to keep the code churn to a minimum, this PR introduces an inference only registration structure and function. It includes just two function pointers: invoke and reset. For this CL, we've only introduced it for FullyConnected.

In the code generator, this PR creates a new op_table array in the generated source, with an enum for lookup. It also generates an invoke function for each subgraph, that calls each operator's invoke function.

BUG=295174388
2023-08-18 20:38:16 +00:00
..
fully_connected.cc Generate op table and subgraph invoke functions (#2176) 2023-08-18 20:38:16 +00:00
fully_connected_int8.cc TFLM swapping TfLiteRegistration_V1 struct to a new more embedded friendly api in the TFLMRegistration struct (#2001) 2023-05-26 06:48:51 +00:00
hexagon_fully_connected.h Fix linter issues in a few files. (#1268) 2022-07-21 20:47:45 +00:00
hexagon_svdf.h Fix linter issues in a few files. (#1268) 2022-07-21 20:47:45 +00:00
hexagon_tflm_translation_fully_connected.h Add Hexagon optimized kernels. (#160) 2021-06-15 21:01:02 +00:00
hexagon_tflm_translation_svdf.h Add Hexagon optimized kernels. (#160) 2021-06-15 21:01:02 +00:00
LICENSE Add Hexagon optimized kernels. (#160) 2021-06-15 21:01:02 +00:00
svdf.cc TFLM swapping TfLiteRegistration_V1 struct to a new more embedded friendly api in the TFLMRegistration struct (#2001) 2023-05-26 06:48:51 +00:00
svdf_int8.cc TFLM swapping TfLiteRegistration_V1 struct to a new more embedded friendly api in the TFLMRegistration struct (#2001) 2023-05-26 06:48:51 +00:00