Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
commit eaee851 Author: ddavis-2015 <[email protected]> Date: Fri Oct 18 17:48:48 2024 -0700 Squashed commit of the following: commit 4894265 Author: ddavis-2015 <[email protected]> Date: Fri Oct 18 17:48:05 2024 -0700 pre-merge empty commit commit a110e41 Author: ddavis-2015 <[email protected]> Date: Fri Oct 18 16:17:13 2024 -0700 fix C++ bitwidth 6 & 7 decompression commit efedcc2 Author: ddavis-2015 <[email protected]> Date: Fri Oct 18 10:18:50 2024 -0700 working decompression unit test commit 81ecf2e Author: ddavis-2015 <[email protected]> Date: Thu Oct 17 18:17:06 2024 -0700 decompression unit test improvements commit b318421 Author: ddavis-2015 <[email protected]> Date: Wed Oct 16 17:34:09 2024 -0700 add decompression unit test commit 9bb2b63 Author: ddavis-2015 <[email protected]> Date: Sun Oct 13 18:34:01 2024 -0700 cleanup commit 77bb05d Author: ddavis-2015 <[email protected]> Date: Sun Oct 13 18:29:33 2024 -0700 align compressed tensor data as per schema commit ad2b1c3 Author: ddavis-2015 <[email protected]> Date: Sat Oct 12 22:35:54 2024 -0700 reduce HIFI5 decompression code size commit 99c6e35 Author: ddavis-2015 <[email protected]> Date: Fri Oct 11 14:02:58 2024 -0700 revert to original Cadence bit width 4 code commit 2388549 Author: ddavis-2015 <[email protected]> Date: Thu Oct 10 17:50:29 2024 -0700 refactor decompression code into reference and platform specific Apply some Xtensa acceleration code changes commit b84853c Author: ddavis-2015 <[email protected]> Date: Tue Oct 8 16:08:55 2024 -0700 testing commit c107f42 Author: Ryan Kuester <[email protected]> Date: Thu Oct 17 14:31:03 2024 -0500 refactor: move misplaced TF_LITE_REMOVE_VIRTUAL_DELETEs to private: Move several TF_LITE_REMOVE_VIRTUAL_DELETE declarations that are wrongly in a public section of their classes. To have the intended effect, as documented in t/l/m/compatibility.h, these must be in a private section. commit 7b3a2bd Author: Ryan Kuester <[email protected]> Date: Thu Oct 17 12:36:46 2024 -0500 build(bazel): always build with TF_LITE_STATIC_MEMORY Add TF_LITE_STATIC_MEMORY to the defines set globally for TFLM builds in Bazel. TFLM always builds with this set in Make, and it appears to have been an oversight that it wasn't set during Bazel builds. Not having it set in Bazel caused some unit tests to pass under Bazel that failed under Make. At the same time, add -fno-exceptions. This flag is also always set in Make builds. Without it, setting TF_LITE_STATIC_MEMORY breaks the build. TF_LITE_STATIC_MEMORY triggers TF_LITE_REMOVE_VIRTUAL_DELETE in t/l/m/compatibility.h, which makes operator delete private in certain classes. When exceptions are enabled, a placement new with those classes is allowed to throw an exception, and operator delete is implicitly called during the unwind. The build breaks because operator delete can't be called if it's private. Disabling exceptions eliminates the unwind code that calls operator delete implicitly, and thus the build succeeds. In any case, -fno-exceptions should have been used in Bazel builds, matching the flags used in Make and the no-exceptions design requirement of the TFLM project. commit 1eb4e0d Author: Ryan Kuester <[email protected]> Date: Thu Oct 17 11:05:45 2024 -0500 feat(python): don't check .sparsity in interpreter Remove the check for sparse tensors in the Python interpreter wrapper. This fixes a broken build when TF_LITE_STATIC_MEMORY is set, which should always be the case in TFLM. TfLiteTensor objects don't have a .sparsity member when TF_LITE_STATIC_MEMORY is set. This prepares for an upcoming commit setting TF_LITE_STATIC_MEMORY during Bazel builds. This hasn't caused build failures in Make builds, which have always set TF_LITE_STATIC_MEMORY, because Make builds don't build the Python interpreter wrapper. commit 7217095 Author: Ryan Kuester <[email protected]> Date: Wed Oct 16 14:03:25 2024 -0500 fix(memory_arena_threshold): with TF_LITE_STATIC_MEMORY Fix the broken build due to redefinition of the threshold when TF_LITE_STATIC_MEMORY is set. Apparently this case isn't triggered in any Bazel test, only in Make. Simplify the threshold specification by only depending on whether compression is enabled and not also on whether TF_LITE_STATIC_MEMORY is in use. commit 8e4e55e Author: Ryan Kuester <[email protected]> Date: Thu Oct 10 12:38:03 2024 -0500 build(bazel): disable codegen when building --//:with_compression The codegen prototype code is not compatible with the changes which implement model compression made to the core TFLM components. For now, disable codegen targets when building with compression enabled. commit 884a234 Author: Ryan Kuester <[email protected]> Date: Tue Oct 15 18:31:01 2024 -0500 build(bazel): compile in compression when --//:with_compression Conditionally compile in support for compressed tensors when the option --//:with_compression is given. commit a1d459b Author: Ryan Kuester <[email protected]> Date: Thu Oct 10 12:28:39 2024 -0500 build(bazel): add --//with_compression build setting Add a --//with_compression user-defined build setting and a corresponding configuration setting. commit 4edc564 Author: Ryan Kuester <[email protected]> Date: Thu Oct 10 12:24:53 2024 -0500 build(bazel): fix compression-related dependencies of micro_allocator commit a52f97f Author: Ryan Kuester <[email protected]> Date: Tue Oct 15 17:28:09 2024 -0500 build(bazel): replace cc_* with tflm_cc_* in remaining TFLM code 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. commit a6368f4 Author: Ryan Kuester <[email protected]> Date: Fri Oct 11 16:08:34 2024 -0500 build(bazel): introduce tflm_cc_* macros, refactoring away micro_copts Remove micro_copts() by replacing every cc_* target that used them with a tflm_cc_* equivalent, and setting those common copts in one place, inside the tflm_cc_* macro. This is the first of several commits introducing tflm_cc_* macros in place of cc_binary, cc_library, and cc_test. Motivated by the upcoming need to support conditional compilation, the objective is to centralize build configuration rather than requiring (and remembering that) each cc_* target in the project add the same common attributes such as compiler options and select()ed #defines. Alternatives such as setting global options on the command line or in .bazelrc, even if simplified with a --config option, fail to preserve flags and hooks for configuration in the case TFLM is used as an external repository by an application project. Nor is it easy in that case for individual targets to override an otherwise global setting. commit 1518422 Author: Ryan Kuester <[email protected]> Date: Thu Oct 10 23:56:49 2024 -0500 chore: remove obsolete ci/temp_patches Remove ci/temp_patches, which was obsoleted in 23f608f once it was no longer used by the sync script. It should have been deleted then. Remove it not only to clean up dead code, but because it contains a reference to `micro_copts`, which is about to be refactored away, and we don't want to leave stray references to it in the tree. commit 18ef080 Author: Ryan Kuester <[email protected]> Date: Tue Oct 8 17:58:12 2024 -0500 refactor: use metadata_saved.h instead of metadata_generated.h Use the generated file metadata_saved.h instead of metadata_generated.h for the reasons explained in t/l/m/compression/BUILD:metadata_saved. Delete metadata_generated.h from the source tree as it is not maintained. commit 5a02e30 Author: Ryan Kuester <[email protected]> Date: Thu Oct 10 13:46:46 2024 -0500 test(memory_arena_threshold): adjust expected value with compression Fix a test failure by setting a different expected value for the persistent buffer allocation when compression is configured in. The allocation was allowed to vary by 3%; however, compression adds ~10%. Set the expected value to the measured value when compression is configured in. commit 01bc582 Author: Ryan Kuester <[email protected]> Date: Thu Oct 10 13:35:10 2024 -0500 test(memory_arena_threshold): don't expect exact allocation values Remove the check for allocation sizes to exactly match expected values. This check immediately followed--and thus rendered pointless---a check that sizes are within a certain percentage, which seems to be the true intent of the test. commit e0aae77 Merge: e328029 e86d97b Author: Ryan Kuester <[email protected]> Date: Wed Oct 16 13:39:56 2024 -0500 Merge branch 'main' into compress-testing commit e328029 Author: Ryan Kuester <[email protected]> Date: Mon Oct 7 12:52:23 2024 -0500 build(bazel): fix dependencies in work-in-progress compression code In the Bazel build, add dependencies needed by the code added to t/l/m:micro_context for decompression. The Bazel build with or without compression was broken without this. commit e86d97b Author: RJ Ascani <[email protected]> Date: Mon Oct 7 10:36:26 2024 -0700 Replace rascani with suleshahid on OWNERS (tensorflow#2715) BUG=none commit b773428 Author: Ryan Kuester <[email protected]> Date: Fri Oct 4 09:59:10 2024 -0500 feat(compression): add work-in-progress compression and viewer tools commit f6bd486 Merge: 487c17a e3f6dc1 Author: Ryan Kuester <[email protected]> Date: Fri Oct 4 09:36:24 2024 -0500 Merge branch 'main' into compress-prerelease commit e3f6dc1 Author: David Davis <[email protected]> Date: Thu Oct 3 10:45:00 2024 -0700 Compression documentation (tensorflow#2711) @tensorflow/micro Add documentation describing some compression/decompression internals and makefile build procedures. bug=tensorflow#2710 commit b3967a9 Author: Ryan Kuester <[email protected]> Date: Wed Oct 2 13:36:01 2024 -0500 style: add .style.yapf to control yapf styling of Python code (tensorflow#2709) Add a .style.yapf file so yapf can be used to style Python code without passing the project's style via command line option. Remove the corresponding patch to pigweed's call to yapf, used by CI, and instead let it too rely on .style.yapf. Remove the developer documentation's instruction to use the command line option. BUG=description commit d249577 Author: Ryan Kuester <[email protected]> Date: Tue Oct 1 16:16:45 2024 -0500 build(codegen): suppress noise in console output (tensorflow#2708) Add a --quiet option to the code_generator binary so that when it's used within the build system, it doesn't print unexpected, distracting noise to the console. Generally, compiler or generator commands don't print output unless there's an error. BUG=description
- Loading branch information