-
Notifications
You must be signed in to change notification settings - Fork 83
Modify distributed_training_utils.py import for TF 2.4 #422
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
Conversation
Codecov Report
@@ Coverage Diff @@
## master #422 +/- ##
==========================================
- Coverage 77.03% 75.14% -1.90%
==========================================
Files 113 113
Lines 10165 10169 +4
==========================================
- Hits 7831 7641 -190
- Misses 2334 2528 +194
Continue to review full report at Codecov.
|
from tensorflow.python.keras.distribute.distributed_training_utils import ( | ||
get_distributed_model, | ||
) | ||
if is_tf_version_greater_than_2_4_x(): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we replace this function from utils with the function defined here to reduce code redundancy?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! Left a minor comment.
Description of changes:
Style and formatting:
I have run
pre-commit install
to ensure that auto-formatting happens with every commit.Issue number, if available
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.