Commit graph

11 commits

Author SHA1 Message Date
David Davis
14638b63ce
Use consistent const-tensor checks (#3139)
@tensorflow/micro

Use consistent const-tensor checks and error messages across these kernels:

PAD
RESIZE_BILINEAR
RESIZE_NEAREST_NEIGHBOR
SPLIT_V
SPLIT

bug=fixes #3138
2025-08-02 03:28:21 +00:00
Steven Toribio
93d4b1ccc6
Unique Init, Prepare, Eval functions Kernels N-Z (#2351)
efactor init, prepare , and eval functions to be unique names for kernels who's name starts with the Letters N-Z

BUG=[b/313963581](https://b.corp.google.com/issues/313963581)
2023-12-12 19:09:23 +00:00
TANMAY DAS
101d2bb935
TFLM swapping TfLiteRegistration_V1 struct to a new more embedded friendly api in the TFLMRegistration struct (#2001)
BUG=http://b/279811848
2023-05-26 06:48:51 +00:00
Advait Jain
29b683a35b
Explicitly use TfLiteRegistration_V1 in TFLM. (#1817)
Change generated with the following command:
```bash
cd tensorflow/lite/micro/
sed -i 's/TfLiteRegistration/TfLiteRegistration_V1/g' `find . -name "*.h" -o -name "*.cc"`
cd -
cd third_party/hexagon/
sed -i 's/TfLiteRegistration/TfLiteRegistration_V1/g' `find . -name "*.h" -o -name "*.cc"`
cd -
tensorflow/lite/micro/tools/ci_build/test_code_style.sh --fix_formatting
```

BUG=http://b/272808609
2023-03-11 01:12:03 +00:00
David Davis
82f593c1db
Flatten kernel namespace: SPLIT (#1765)
@tensorflow/micro

Flatten namespace for kernel operator SPLIT
Update unit tests namespace usage
Update MicroOpResolver namespace usage

bug=fixes #1764
2023-02-20 08:09:16 +00:00
Vamsi Krishna Manchala
6fdade1aed
Update TFLM examples, kernels and integration tests to clean-up the usage of ErrorReporter
This PR updates remainder of the TFLM examples, all the kernels and integration tests to remove the usage of ErrorReporter as per the changes made to the TFLM Framework API in https://github.com/tensorflow/tflite-micro/pull/1415; replaces TF_LITE_REPORT_ERROR with MicroPrintf.

BUG=http://b/192091017, http://b/245802069
2022-09-20 20:46:26 +00:00
Pauline Sho
1bc9862118
Enable -Wmissing-field-initializers and update all registration (#1084)
* Enable -Wmissing-field-initializers and update all registration
references

In https://github.com/tensorflow/tflite-micro/pull/1082/, we disabled
the compiler error as a workaround for a successful upstream sync from
TFLite. This PR re-enables the error after addressing all errors. A new
`RegisterOp` API is added, and all prior TfLiteRegistration struct
initializations are updated to use the new API. At the minimum, this
ensures that such additions in future will only require an update to
RegisterOp if TFLM doesn't use that field.

BUG=b/230507399

* Added new RegisterOpWithFree for LSTM

* Remove LSTM Free

* Changed inline to normal function to save code size

* Changed inline to normal function to save code size

* Replace cmsis_nn static initialization with RegisterOp

* Removed extra code

* Add dropped namespace in hard_swish
2022-05-03 21:07:43 +00:00
deqiangc
ce9451f542
Replace (almost) all kernel's GetInput/GetOutput with AllocateTempXXx and DeallocateTempXxx micro context api (#894)
* Replace GetInput/GetOutput with micro context api

* Replace GetInput/GetOutput in kernels with micro_context api. Ther are three kernels (strided_slice, squeeze, transpose)that are not changed yet because:
they put the returned value of GetInput/GetOutput in an OpData structure that is persistent.
It is better to have separate change to opdata of those kernels

* Fix corner case in pad

* Fix cmsis-nn

* Fix xtensa, cmsis_nn, hexagon
2022-02-01 17:53:16 +00:00
Nat Jeffries
13c69667be
Add features to cast, add slice, clean up split. (#568) 2021-10-04 15:33:41 -07:00
Nat Jeffries
0b9825c6b2
Remove UInt8 from TFLM kernels. (#428) 2021-08-17 19:18:39 +00:00
Advait Jain
a37043ff7a
Manually sync'd code from upstream TF. (#2)
Confirmed that the following command passes:
```
./tensorflow/lite/micro/tools/ci_build/test_all_new.sh GITHUB_PRESUBMIT
```
2021-04-09 11:17:58 -07:00