We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2aa3c9e + 9fee03d commit f050797Copy full SHA for f050797
smdebug/tensorflow/utils.py
@@ -6,6 +6,7 @@
6
7
# Third Party
8
import tensorflow as tf
9
+import tensorflow.compat.v1 as tf_v1
10
from packaging import version
11
from tensorflow.python.distribute import values
12
@@ -23,9 +24,9 @@ def supported_tf_variables():
23
24
if does_tf_support_mixed_precision_training():
25
from tensorflow.python.keras.mixed_precision.experimental import autocast_variable
26
- return tf.Variable, autocast_variable.AutoCastVariable
27
+ return tf_v1.Variable, autocast_variable.AutoCastVariable
28
else:
- return tf.Variable
29
+ return tf_v1.Variable
30
31
32
class ModelOutput:
0 commit comments