Skip to content

Commit

Permalink
Fixing namespace bug and requirenment
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 338221474
  • Loading branch information
evcu committed Oct 21, 2020
1 parent cd7893e commit 9897901
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion rigl/cifar_resnet/data_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ def parse_serialized_example(record):
# example is seen twice.
dataset = dataset.batch(batch_size)

images_batch, labels_batch = tf.compat.v1.data.make_one_shot_iterator(
images_batch, labels_batch = tf.data.make_one_shot_iterator(
dataset).get_next()

return (tf.reshape(images_batch, [batch_size, IMG_SIZE, IMG_SIZE, 3]),
Expand Down
2 changes: 1 addition & 1 deletion rigl/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ absl-py>=0.6.0
numpy>=1.15.4
six>=1.12.0
tensorflow>=1.12.0,<2.0 # change to 'tensorflow-gpu' for gpu support
tensorflow-datasets
tensorflow-datasets==2.1

0 comments on commit 9897901

Please sign in to comment.