mirror of
https://github.com/google-deepmind/deepmind-research.git
synced 2026-05-28 19:31:14 +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
@@ -21,7 +21,7 @@ from __future__ import division
|
||||
from __future__ import print_function
|
||||
|
||||
import six
|
||||
import tensorflow as tf
|
||||
import tensorflow.compat.v1 as tf
|
||||
|
||||
|
||||
def sum_time_average_batch(tensor, name=None):
|
||||
|
||||
+1
-1
@@ -28,7 +28,7 @@ from absl import logging
|
||||
import numpy as np
|
||||
from six.moves import range
|
||||
from six.moves import zip
|
||||
import tensorflow as tf
|
||||
import tensorflow.compat.v1 as tf
|
||||
|
||||
from tvt import batch_env
|
||||
from tvt import nest_utils
|
||||
|
||||
+1
-1
@@ -23,7 +23,7 @@ from __future__ import print_function
|
||||
import collections
|
||||
|
||||
import sonnet as snt
|
||||
import tensorflow as tf
|
||||
import tensorflow.compat.v1 as tf
|
||||
|
||||
ReadInformation = collections.namedtuple(
|
||||
'ReadInformation', ('weights', 'indices', 'keys', 'strengths'))
|
||||
|
||||
+1
-1
@@ -26,7 +26,7 @@ import numpy as np
|
||||
from six.moves import range
|
||||
from six.moves import zip
|
||||
import sonnet as snt
|
||||
import tensorflow as tf
|
||||
import tensorflow.compat.v1 as tf
|
||||
import trfl
|
||||
|
||||
from tvt import losses
|
||||
|
||||
Reference in New Issue
Block a user