mirror of
https://github.com/google-deepmind/deepmind-research.git
synced 2026-05-27 10:15:44 +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
@@ -19,7 +19,7 @@ from __future__ import print_function
|
||||
import math
|
||||
|
||||
import sonnet as snt
|
||||
import tensorflow as tf
|
||||
import tensorflow.compat.v1 as tf
|
||||
|
||||
from cs_gan import utils
|
||||
|
||||
|
||||
+1
-1
@@ -16,7 +16,7 @@ import collections
|
||||
import math
|
||||
|
||||
import sonnet as snt
|
||||
import tensorflow as tf
|
||||
import tensorflow.compat.v1 as tf
|
||||
|
||||
from cs_gan import utils
|
||||
|
||||
|
||||
+1
-1
@@ -21,7 +21,7 @@ import os
|
||||
from absl import app
|
||||
from absl import flags
|
||||
from absl import logging
|
||||
import tensorflow as tf
|
||||
import tensorflow.compat.v1 as tf
|
||||
|
||||
from cs_gan import file_utils
|
||||
from cs_gan import gan
|
||||
|
||||
+1
-1
@@ -22,7 +22,7 @@ from absl import app
|
||||
from absl import flags
|
||||
from absl import logging
|
||||
|
||||
import tensorflow as tf
|
||||
import tensorflow.compat.v1 as tf
|
||||
import tensorflow_probability as tfp
|
||||
|
||||
from cs_gan import cs
|
||||
|
||||
+1
-1
@@ -17,7 +17,7 @@ import functools
|
||||
import re
|
||||
import numpy as np
|
||||
import sonnet as snt
|
||||
import tensorflow as tf
|
||||
import tensorflow.compat.v1 as tf
|
||||
import tensorflow_gan as tfgan
|
||||
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
|
||||
|
||||
import sonnet as snt
|
||||
import tensorflow as tf
|
||||
import tensorflow.compat.v1 as tf
|
||||
|
||||
from cs_gan import gan
|
||||
|
||||
|
||||
+1
-1
@@ -19,7 +19,7 @@ import os
|
||||
|
||||
from absl import logging
|
||||
import numpy as np
|
||||
import tensorflow as tf
|
||||
import tensorflow.compat.v1 as tf
|
||||
import tensorflow_probability as tfp
|
||||
|
||||
from cs_gan import nets
|
||||
|
||||
Reference in New Issue
Block a user