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
@@ -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
View File
@@ -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
View File
@@ -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
View File
@@ -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
View File
@@ -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
+1 -1
View File
@@ -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
View File
@@ -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