mirror of
https://github.com/google-deepmind/deepmind-research.git
synced 2026-05-29 03:35:21 +08:00
Explicitly replace "import tensorflow" with "tensorflow.compat.v1"
PiperOrigin-RevId: 288392606
This commit is contained in:
committed by
Diego de Las Casas
parent
8b47d2a576
commit
b8cf44502b
+1
-1
@@ -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
@@ -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
@@ -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
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user