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

Remove weak attribute for RegisterSelectedOps #734

Merged
merged 1 commit into from
Apr 29, 2022

Conversation

Tombana
Copy link
Collaborator

@Tombana Tombana commented Apr 29, 2022

What do these changes do?

The bazel build of lce_benchmark_model works fine, but when using the cmake version, none of our ops are registered: RegisterSelectedOps is not called at all. This seems to be caused by the fact that the registration function is marked as 'weak', and then it depends on the order of linking which function wins.

There wasn't supposed to be a weak attribute here at all: the weak version of the symbol is in the TF library, meant to be overridden by binaries such as this one.

How Has This Been Tested?

Both the cmake and bazel builds are now working as expected.

@Tombana Tombana requested a review from a team April 29, 2022 11:28
@Tombana Tombana added the internal-improvement Internal Improvements and Maintenance label Apr 29, 2022
@Tombana Tombana merged commit d3c28e6 into main Apr 29, 2022
@Tombana Tombana deleted the fix_benchmark_op_registration branch April 29, 2022 12:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
internal-improvement Internal Improvements and Maintenance
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants