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

More TF fixes #28081

Merged
merged 3 commits into from
Dec 18, 2023
Merged

More TF fixes #28081

merged 3 commits into from
Dec 18, 2023

Conversation

Rocketknight1
Copy link
Member

The TF build() PR brought back an old issue where TF would latch onto the first concrete shape it saw, which would then become the model's save signature. We avoid it by hitting self._set_save_spec() with flexible shapes ASAP when models are created.

This PR also replaces a few more instances of build() with build_in_name_scope() in our tests. This should hopefully fix the CI issues (cc @ydshieh)

@Rocketknight1
Copy link
Member Author

Quick re-ping about this one @amyeroberts! (it's a very small PR, but I'd like to get it in so the CI stops upsetting Yih-Dar)

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 ping and for fixing!

@Rocketknight1 Rocketknight1 merged commit 71d47f0 into main Dec 18, 2023
21 checks passed
@Rocketknight1 Rocketknight1 deleted the more_tf_test_fixes branch December 18, 2023 15:26
staghado pushed a commit to staghado/transformers that referenced this pull request Jan 15, 2024
* More build_in_name_scope()

* Make sure we set the save spec now we don't do it with dummies anymore

* make fixup
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.

2 participants