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

TF >= 2.3 cleaning #9369

Merged
merged 1 commit into from
Jan 5, 2021
Merged

TF >= 2.3 cleaning #9369

merged 1 commit into from
Jan 5, 2021

Conversation

jplu
Copy link
Contributor

@jplu jplu commented Dec 31, 2020

What does this PR do?

The minimal TF version has recently been fixed to >=2.3, this PR remove all the <2.3 calls, mostly replacing experimental features by their stable ones.

@@ -93,11 +92,6 @@ def __init__(
None,
),
):
assert parse(tf.__version__).release >= (2, 2, 0), (
Copy link
Contributor

Choose a reason for hiding this comment

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

Should that be updated to 2.3.0 in this case then?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No, because the min version for running the trainer was 2.2.0. So this assert becomes useless.

Copy link
Member

@LysandreJik LysandreJik left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Collaborator

@sgugger sgugger left a comment

Choose a reason for hiding this comment

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

LGTM, thanks for updating!

@LysandreJik LysandreJik merged commit 4225740 into huggingface:master Jan 5, 2021
@jplu jplu deleted the tf-2.3 branch January 5, 2021 09:38
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