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