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

Correctly build models and import call_context for older TF versions #24138

Merged
merged 1 commit into from
Jun 9, 2023

Conversation

Rocketknight1
Copy link
Member

Our import for call_context was wrong for older TF versions - this unfortunately makes it quite hard to load models on older TF versions! This PR fixes it, and sorry about the issue!

Fixes #24133

Copy link
Collaborator

@amyeroberts amyeroberts left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the quick fix!

Just to double check - from tensorflow.python.keras.engine.base_layer_utils import call_context is compatible with newer TF versions?

@Rocketknight1
Copy link
Member Author

@amyeroberts The code is in a conditional block that checks TF versions. I'm currently testing all TF versions since 2.4 to make sure this works for all of them - give me a few minutes to finish that before we merge the PR!

@Rocketknight1
Copy link
Member Author

Version testing looks good!

@HuggingFaceDocBuilderDev
Copy link

HuggingFaceDocBuilderDev commented Jun 9, 2023

The documentation is not available anymore as the PR was closed or merged.

@Rocketknight1
Copy link
Member Author

Merging this now and will begin discussions about a patch release

@Rocketknight1 Rocketknight1 merged commit 03585f3 into main Jun 9, 2023
@Rocketknight1 Rocketknight1 deleted the correct_call_context_import branch June 9, 2023 12:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants