Skip to content

Commit 4b6450b

Browse files
NihalHarishsophiayue1116
authored andcommitted
Modify distributed_training_utils.py import for TF 2.4 (awslabs#422)
1 parent eb6477d commit 4b6450b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

smdebug/tensorflow/utils.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -427,6 +427,10 @@ def is_tf_version_greater_than_2_4_x():
427427
return version.parse("2.4.0") <= TF_VERSION
428428

429429

430+
def is_tf_version_greater_than_2_4_x():
431+
return version.parse("2.4.0") <= version.parse(tf.__version__)
432+
433+
430434
def is_profiler_supported_for_tf_version():
431435
# Profiler Support Added For TF Versions 2.2.0 And Greater
432436
return version.parse("2.2.0") <= TF_VERSION

0 commit comments

Comments
 (0)