Skip to content

Commit

Permalink
refactor: use metadata_saved.h instead of metadata_generated.h
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
rkuester committed Oct 16, 2024
1 parent 5a02e30 commit 18ef080
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 233 deletions.
228 changes: 0 additions & 228 deletions tensorflow/lite/micro/compression/metadata_generated.h

This file was deleted.

2 changes: 1 addition & 1 deletion tensorflow/lite/micro/micro_allocator.cc
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ limitations under the License.
#include <algorithm>
#include <cstring>

#include "tensorflow/lite/micro/compression/metadata_generated.h"
#include "tensorflow/lite/micro/compression/metadata_saved.h"

#endif // USE_TFLM_COMPRESSION

Expand Down
2 changes: 1 addition & 1 deletion tensorflow/lite/micro/test_helpers.cc
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ limitations under the License.

#ifdef USE_TFLM_COMPRESSION

#include "tensorflow/lite/micro/compression/metadata_generated.h"
#include "tensorflow/lite/micro/compression/metadata_saved.h"

#endif // USE_TFLM_COMPRESSION

Expand Down
3 changes: 0 additions & 3 deletions tensorflow/lite/micro/tools/ci_build/test_code_style.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ tensorflow/lite/micro/tools/make/downloads/pigweed/pw_presubmit/py/pw_presubmit/
-e python/schema_py_generated.py \
-e python_requirements.in \
-e tensorflow/lite/micro/compression/metadata_saved.h \
-e tensorflow/lite/micro/compression/metadata_generated.h \
-e tools/make/downloads \
-e tools/make/targets/ecm3531 \
-e BUILD\
Expand Down Expand Up @@ -101,8 +100,6 @@ tensorflow/lite/micro/tools/make/downloads/pigweed/pw_presubmit/py/pw_presubmit/
-e schema/schema_utils.h \
-e tensorflow/lite/micro/compression/metadata_saved.h \
-e tensorflow/lite/micro/tools/layer_by_layer_schema_generated.h \
-e tensorflow/lite/micro/compression/metadata_saved.h \
-e tensorflow/lite/micro/compression/metadata_generated.h \
-e "\.inc" \
-e "\.md" \
${EXCLUDE_SHARED_TFL_CODE}
Expand Down

0 comments on commit 18ef080

Please sign in to comment.