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

PiperOrigin-RevId: 287568660
This commit is contained in:
Deepmind Team
2019-12-30 18:35:38 +00:00
committed by Diego de Las Casas
parent 5b22f16532
commit 8b47d2a576
25 changed files with 34028 additions and 9 deletions
+1 -1
View File
@@ -22,7 +22,7 @@ import os
from absl import logging
import numpy as np
from tensorflow.io import gfile
from tensorflow.compat.v1.io import gfile
# sequences: [N, MAX_TOKENS_SEQUENCE] array of int32
# lengths: [N, 2] array of int32, such that