Deprecated tf.session removed in mnist_tflite.py
This commit is contained in:
parent
bc73b9cde7
commit
6de3421b2e
@ -33,7 +33,7 @@ flags = flags.FLAGS
|
||||
|
||||
def test_image_generator():
|
||||
# Generates an iterator over images
|
||||
with tf.Session() as sess:
|
||||
with tf.compat.v1.Session() as sess:
|
||||
input_data = tf.compat.v1.data.make_one_shot_iterator(dataset.test(
|
||||
flags.data_dir)).get_next()
|
||||
try:
|
||||
|
Loading…
Reference in New Issue
Block a user