Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix a linker error: undefined kMaxSmallSize #2476

Merged
merged 6 commits into from
Feb 27, 2024

Conversation

shlmregev
Copy link
Member

When building with a recent version of xt-clang and -std=c++11, the linker errs on missing definition of a static constexpr class member. In C++11, static class members still had to be defined in a C++11 file and TFLM code is expected to be compatible with C++11.

BUG=323856831

When building with a recent version of xt-clang and -std=c++11, the linker errs on missing definition of a static constexpr class member. In C++11, static class members still had to be defined in a C++11 file and TFLM code is expected to be compatible with C++11.

BUG=323856831
@shlmregev shlmregev requested a review from a team as a code owner February 26, 2024 09:39
@ddavis-2015
Copy link
Member

@rascani @shlmregev

This PR needs to be submitted in the Tensorflow repository. The reason is that the file being changed is currently being synched daily from TensorFlow Lite.

FYI, the list of TFLite synched files is here.

@rascani
Copy link
Contributor

rascani commented Feb 26, 2024

Per our OOB conversation, this definition can be defined in runtime_shape.cc, as it is from the runtime_shape.h header. The runtime_shape.h header is not synced from TFLite.

After discussing with  the TFLM team, this file isn't sync-ed from the
tflite repo, so we're free to create our own copy of the file.
@mergify mergify bot merged commit b991e72 into tensorflow:main Feb 27, 2024
28 checks passed
rascani added a commit to rascani/tflite-micro that referenced this pull request Feb 28, 2024
Despite existing in TFLite, the runtime_shape.h has long differed
between TFLite and TFLM. The file is not copied during the sync and the
sync script does a `git checkout` on the file to ensure that the
existing version in the TFLM tree remains.

In PR tensorflow#2476, we needed to add a runtime_shape.cc file. This PR ensures
that the runtime_shape.cc file will not be removed during the sync by
performing a `git checkout` on the existing file.

BUG=323856831
rascani added a commit that referenced this pull request Feb 28, 2024
Despite existing in TFLite, the runtime_shape.h has long differed
between TFLite and TFLM. The file is not copied during the sync and the
sync script does a `git checkout` on the file to ensure that the
existing version in the TFLM tree remains.

In PR #2476, we needed to add a runtime_shape.cc file. This PR ensures
that the runtime_shape.cc file will not be removed during the sync by
performing a `git checkout` on the existing file.

BUG=323856831
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants