Commit Graph

5 Commits

Author SHA1 Message Date
TFLM-bot ad8d238f9f
Automated sync from github.com/tensorflow/tensorflow (#2221)
BUG=automated sync from upstream
NO_CHECK_TFLITE_FILES=automated sync from upstream
2023-09-14 23:18:01 +00:00
RJ Ascani b45012b52c
Fix RISC-V codegen example (#2199)
The RISC-V toolchain we're using failed to properly discern the TfLiteEvalTensor type for use with an assignment operator. It produced compiler errors for "no match for 'operator=' with operand types TfLiteEvalTensor and a brace-closed initializer list. This PR resolves this issue by explicitly using the TfLiteEvalTensor constructor for the initializer list. We also apply this approach to the TfLiteNode initialization as well, just for consistency.

BUG=#2195
2023-08-29 18:22:08 +00:00
Advait Jain 1e7c710ca9
remove unused symbol from BUILD file. (#2190)
Warning shown by internal tools in http://cl/560228301.

BUG=cleanup
2023-08-28 04:07:34 +00:00
RJ Ascani f8ab03d6b7
Generate BuiltinData for FullyConnected (#2184)
Each operator has its own set of BuiltinOptions, which will translate into an op-specific TfLite Params structure. This change turns Operator into a base class with common functionality, and adds a FullyConnected subclass that knows how to generate the TfLiteFullyConnectedParams struct.

BUG=b/295175961
2023-08-24 18:32:39 +00:00
RJ Ascani 34691a66f2
codegen: Add TFLiteContext and TfLiteNodes (#2179)
This PR adds the generation of empty TfLiteContext and TfLiteNode structures, and generates appropriate invocation methods for each subgraph. It also generates the input, output, and intermediate arrays for each TfLiteNode.

BUG=b/295175961
2023-08-23 23:46:03 +00:00