Skip to content

Commit f050797

Browse files
committed
Merge branch 'compat_v1' of github.com:awslabs/sagemaker-profiler into 1.0.0
2 parents 2aa3c9e + 9fee03d commit f050797

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

smdebug/tensorflow/utils.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
# Third Party
88
import tensorflow as tf
9+
import tensorflow.compat.v1 as tf_v1
910
from packaging import version
1011
from tensorflow.python.distribute import values
1112

@@ -23,9 +24,9 @@ def supported_tf_variables():
2324
if does_tf_support_mixed_precision_training():
2425
from tensorflow.python.keras.mixed_precision.experimental import autocast_variable
2526

26-
return tf.Variable, autocast_variable.AutoCastVariable
27+
return tf_v1.Variable, autocast_variable.AutoCastVariable
2728
else:
28-
return tf.Variable
29+
return tf_v1.Variable
2930

3031

3132
class ModelOutput:

0 commit comments

Comments
 (0)