Commit graph

32 commits

Author SHA1 Message Date
Esun Kim
183da3e302
Typo in code (#3447)
* Typo in code

* Format
2026-02-11 20:34:42 +00:00
Ryan Kuester
b68c655367
build(bazel): replace cc_* with tflm_cc_* in remaining TFLM code (#2768)
Replace cc_* targets remaining in TFLM code with tflm_cc_*
targets. These are targets which did not formerly use the common
copts. Avoid changing imported TFLite code, if for no other
reason than to avoid merge conflicts during the automatic sync
with upstream TFLite.

BUG=#2636
2024-11-15 05:08:54 +00:00
RJ Ascani
d069ba8299
Remove unused visibility spec (#2594)
BUG=cl/634722988
2024-05-22 17:37:31 +00:00
Måns Nilsson
d308847975
Update examples and documentation for Arm(R) Corstone(TM)-300 FVP (#2503)
* Updates benchmark documentation.
* Updates benchmarks and network tester example.
* Select only needed ops for memory measurements.
* Only pip install if needed.
* Also gen folder output will be created differently depending on also toolchain and type of kernels

BUG=documentation for the benchmark application is not correct
2024-03-15 22:29:09 +00:00
Måns Nilsson
5ec9d472e7
Update readmes (#2216)
BUG=readme files could be improved
2023-09-11 15:56:50 +00:00
Advait Jain
ffd7d16c86
Remove STM32F4 and test CMSIS_NN kernels with bluepill. (#1861)
BUG=http://b/275917313
2023-03-29 23:09:02 -07:00
David Davis
f754675f8b
Optimized kernel reference fallbacks: MAX_POOL_2D et al (#1779)
@tensorflow/micro

Remove conditional compilation for kernel tests for the following platforms: Xtensa
Add optimized kernel reference fallback code for the following platforms: Xtensa

Int8 code separated out to work around Xtensa linker issue that allows dead inline code (which the compiler refused to inline) to increase benchmark binary size. See PR #1739 for details.

The following table shows the size changes for each benchmark binary as a result of this PR:
| Platform | Benchmark | Build | Text | Data | BSS |
| --- | --- | --- | --- | --- | --- |
| hifi4 | keyword | default | 0 | 0 | 0 |
| hifi5 | keyword | default | 0 | 0 | 0 |
| p6 | keyword | default | 0 | 0 | 0 |
| hifi4 | person detection | default | -152 | 0 | 0 |
| hifi5 | person detection | default | -128 | +16 | 0 |
| p6 | person detection | default | -224 | 0 | 0 |

bug=fixes #1778
2023-02-22 23:12:38 +00:00
Måns Nilsson
b496b2c2f2
Provide an interface class for MicroProfiler
BUG=Fixes https://github.com/tensorflow/tflite-micro/issues/1336
2022-09-24 00:01:36 +00:00
TANMAY DAS
48ea457876
Change the x86 tests to be able to run from the parent of tflm-micro directory (#1439)
BUG=b/246833632
2022-09-23 03:45:23 +00:00
Vamsi Krishna Manchala
95761fcfd0
TFLite Micro framework changes to support log refactor
This PR-

1. Changes the TFLite Micro Framework classes to eliminate the usage of `MicroErrorReporter` and `ErrorReporter` classes.
2. Keeps the version of the APIs, that expect ErrorReporter for backwards compatibility. 
	- This compatibility is limited to the bare minimum set of API currently being used.
	- The minimum support to the version of API expecting ErrorReporter will be removed as a follow-up PR, expected to be merged next week.
	- Any new applications or examples using TFLM should no longer be creating and passing-in an ErrorReporter. 


BUG=http://b/245802069
2022-09-19 19:03:54 +00:00
TANMAY DAS
4051ca97e7
Initial version of build structure change.
This is a CL that allows us to build and run TFLM binaries from `tflite-micro` directory as well as from the parent directory of `tflite-micro`. 

Example : to run all the tests in TFLM from inside `tflite-micro` directory, we need to run the following command 
`make -f tensorflow/lite/micro/tools/make/Makefile test`

Now to run the tests from the parent directory of `tflite-micro`, we need to run the following command 
`make -f tflite-micro/tensorflow/lite/micro/tools/make/Makefile test TENSORFLOW_ROOT=tflite-micro/`

Please note that the '/' at the end of 'TENSORFLOW_ROOT=tflite-micro/' is mandatory. 

BUG=244204467
2022-09-15 22:12:35 +00:00
Nat Jeffries
86f8fa7e0a
Support resource variables in micro_benchmark. (#701) 2021-11-17 17:50:28 -08:00
Advait Jain
2a245675a4
Remove unused function. (#546)
This causes internal checks to fail when importing from github.

BUG=cleanup
2021-09-30 18:16:49 +00:00
rockyrhodes
de8f61a074
Add full 8bit version of keyword benchmark. (#540) 2021-09-28 09:13:46 -07:00
rockyrhodes
f4678f27d0
Generate keyword benchmark data from model. (#538) 2021-09-27 15:54:03 -07:00
Nat Jeffries
26944780f4
TFLM changes to support resource variables. (#482) 2021-09-07 09:21:53 -07:00
Nat Jeffries
f9e68f1156
Implement svdf and fully_connected kernel variants for hexagon. (#380) 2021-08-27 06:05:11 +00:00
Advait Jain
a9f2e03b94
Enable more targets as part of the baze build. (#448)
With https://github.com/tensorflow/tflite-micro/pull/337 we can now run these targets via a bazel build.

BUG=http://b/186676432 and http://b/174680668
2021-08-20 00:59:28 +00:00
Advait Jain
169a27b204
Add reason for disabling the layering check. (#441)
And restore -layering_check to a few places where it got removed with https://github.com/tensorflow/tflite-micro/pull/435/

BUG=http://b/177257332
2021-08-19 18:42:19 +00:00
Advait Jain
aa2c1079bf
Build all the benchmarks as part of a make build command. (#432)
* Build all the benchmarks as part of a `make build` command.

* Build benchmark as part of `make build`.

BUG=http://b/197017812

* Fix the build

* Add a separate `make build` to the CI scripts.
2021-08-17 23:27:54 +00:00
Nat Jeffries
5f42e12574
Generate cc and hdr files for person_detection_benchmark. (#430) 2021-08-17 22:53:29 +00:00
Advait Jain
2ddb3cc800
Update links to point to the tflite-micro github repository. (#283)
BUG=http://b/193437031
2021-07-14 21:23:24 +00:00
Nat Jeffries
d25c30df16
Add a way to get the interpreter from a benchmark runner. (#222)
Co-authored-by: Advait Jain <advaitjain@users.noreply.github.com>
2021-06-25 21:02:03 -07:00
Advait Jain
f368634a90
Updated QC implementation no longer needs additional arena for keyword_benchmark. (#221)
Verified that the following commands work:
```
make -f tensorflow/lite/micro/tools/make/Makefile TARGET=hexagon OPTIMIZED_KERNEL_DIR=hexagon OPTIMIZED_KERNEL_DIR_PREFIX=third_party HEXAGON_TFLM_LIB=~/Qualcomm/tflm_google/hexagon_tflm_core.a test_kernel_fully_connected_test
make -f tensorflow/lite/micro/tools/make/Makefile TARGET=hexagon OPTIMIZED_KERNEL_DIR=hexagon OPTIMIZED_KERNEL_DIR_PREFIX=third_party HEXAGON_TFLM_LIB=~/Qualcomm/tflm_google/hexagon_tflm_core.a test_kernel_svdf_test
make -f tensorflow/lite/micro/tools/make/Makefile TARGET=hexagon OPTIMIZED_KERNEL_DIR=hexagon OPTIMIZED_KERNEL_DIR_PREFIX=third_party HEXAGON_TFLM_LIB=~/Qualcomm/tflm_google/hexagon_tflm_core.a run_keyword_benchmark
```

BUG=http://b/174781826
2021-06-25 20:55:37 +00:00
Advait Jain
aaa88b7db6
Remove hifimini support from the bazel build. (#198)
* Remove hifimini support from the bazel build.

 * Consolidate all kernel BUILD targets into micro_ops
 * remove select statements for xtensa_hifimini

BUG=http://b/191406930

* fix bazel build.
2021-06-17 23:38:29 +00:00
Advait Jain
3e37fdaaba
Remove build_test from the BUILD files. (#194)
Since the CI builds all the targets (binary and test), and the source of
truth for all the TFLM code is having a build_test is not adding any additional value.

Additionally, a build_test seems to add additional downloads which would
make it slower to run the bazel CI from within a docker container.
2021-06-17 13:31:14 -07:00
Nat Jeffries
36c507eb56
Add int8 conv kernel variant for xtensa (#169)
* Add int8 conv kernel variant for fusion F1.

Person detection benchmark binary size before:
   text	   data	    bss	    dec
 138288	 337488	 141752	 617528

After:
   text	   data	    bss	    dec
 100040	 336160	 141752	 577952

* Re-enable conv2d variant in person detection benchmark.

* Address comments.

-Change Register_CONV2D_INT8 to Register_CONV_2D_INT8REF
-Remove int8-specific prepare.
-Rename conv_int8.cc to conv_int8_reference.cc
2021-06-16 17:30:41 +00:00
TFLM-bot
9ea43319aa
Automated sync from github.com/tensorflow/tensorflow (#110) 2021-06-01 20:01:47 +00:00
TFLM-bot
ac4d61df59
Automated sync from github.com/tensorflow/tensorflow (#85) 2021-05-19 21:09:40 +00:00
TFLM-bot
3bc6526a2b
Automated sync from github.com/tensorflow/tensorflow (#67) 2021-05-05 20:34:41 +00:00
Advait Jain
5a65a54ce2
Sync from upstream with ci/sync_from_upstream_tf.sh (#15) 2021-04-21 03:23:30 +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