Skip to content

Conversation

NihalHarish
Copy link
Contributor

Description of changes:

  • The distributed_training_utils.py has been renamed to distributed_training_utils_v1.py in TF 2.4

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.

@codecov-io
Copy link

codecov-io commented Jan 13, 2021

Codecov Report

Merging #422 (ba0abf9) into master (07a3fd9) will decrease coverage by 1.89%.
The diff coverage is 80.00%.

Impacted file tree graph

@@            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     
Impacted Files Coverage Δ
smdebug/tensorflow/keras.py 78.82% <66.66%> (-11.39%) ⬇️
smdebug/tensorflow/utils.py 64.92% <100.00%> (-23.11%) ⬇️
smdebug/tensorflow/callable_cache.py 52.17% <0.00%> (-26.09%) ⬇️
smdebug/tensorflow/singleton_utils.py 83.33% <0.00%> (-16.67%) ⬇️
smdebug/tensorflow/collection.py 84.53% <0.00%> (-11.35%) ⬇️
smdebug/core/logger.py 66.12% <0.00%> (-8.07%) ⬇️
smdebug/core/tfevent/summary.py 81.35% <0.00%> (-6.78%) ⬇️
smdebug/tensorflow/base_hook.py 70.28% <0.00%> (-3.99%) ⬇️
... and 13 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 07a3fd9...41d44bf. Read the comment docs.

from tensorflow.python.keras.distribute.distributed_training_utils import (
get_distributed_model,
)
if is_tf_version_greater_than_2_4_x():
Copy link
Contributor

@ndodda-amazon ndodda-amazon Jan 13, 2021

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?

Copy link
Contributor

@ndodda-amazon ndodda-amazon left a 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.

@NihalHarish NihalHarish merged commit 02d6fa2 into master Jan 13, 2021
@NihalHarish NihalHarish deleted the support_import_tf24 branch January 13, 2021 22:25
sophiayue1116 pushed a commit to sophiayue1116/sagemaker-debugger that referenced this pull request Jan 20, 2021
sophiayue1116 pushed a commit to sophiayue1116/sagemaker-debugger that referenced this pull request Jan 20, 2021
sophiayue1116 pushed a commit to sophiayue1116/sagemaker-debugger that referenced this pull request Jan 20, 2021
sophiayue1116 pushed a commit to sophiayue1116/sagemaker-debugger that referenced this pull request Jan 20, 2021
sophiayue1116 pushed a commit to sophiayue1116/sagemaker-debugger that referenced this pull request Jan 20, 2021
sophiayue1116 pushed a commit to sophiayue1116/sagemaker-debugger that referenced this pull request Jan 22, 2021
sophiayue1116 pushed a commit to sophiayue1116/sagemaker-debugger that referenced this pull request Jan 22, 2021
sophiayue1116 pushed a commit to sophiayue1116/sagemaker-debugger that referenced this pull request Jan 29, 2021
sophiayue1116 pushed a commit to sophiayue1116/sagemaker-debugger that referenced this pull request Jan 29, 2021
sophiayue1116 pushed a commit to sophiayue1116/sagemaker-debugger that referenced this pull request Jan 29, 2021
sophiayue1116 pushed a commit to sophiayue1116/sagemaker-debugger that referenced this pull request Jan 29, 2021
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.

3 participants