Explicitly replace "import tensorflow" with "tensorflow.compat.v1"

PiperOrigin-RevId: 288392606
This commit is contained in:
Deepmind Team
2020-01-06 23:51:12 +00:00
committed by Diego de Las Casas
parent 8b47d2a576
commit b8cf44502b
22 changed files with 22 additions and 22 deletions
+1 -1
View File
@@ -17,7 +17,7 @@
from absl import logging
import sonnet as snt
import tensorflow as tf
import tensorflow.compat.v1 as tf
tfc = tf.compat.v1
+1 -1
View File
@@ -18,7 +18,7 @@
from absl import logging
import numpy as np
import sonnet as snt
import tensorflow as tf
import tensorflow.compat.v1 as tf
import tensorflow_probability as tfp
from curl import layers
+1 -1
View File
@@ -22,7 +22,7 @@ from absl import logging
import numpy as np
from sklearn import neighbors
import sonnet as snt
import tensorflow as tf
import tensorflow.compat.v1 as tf
import tensorflow_datasets as tfds
import tensorflow_probability as tfp
+1 -1
View File
@@ -20,7 +20,7 @@ from __future__ import division
from __future__ import print_function
from absl import logging
import tensorflow as tf
import tensorflow.compat.v1 as tf
import tensorflow_probability as tfp