MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / test_image_generator

Function test_image_generator

tensorflow/lite/tutorials/mnist_tflite.py:34–43  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

32
33
34def test_image_generator():
35 # Generates an iterator over images
36 with tf.compat.v1.Session() as sess:
37 input_data = tf.compat.v1.data.make_one_shot_iterator(dataset.test(
38 flags.data_dir)).get_next()
39 try:
40 while True:
41 yield sess.run(input_data)
42 except tf.errors.OutOfRangeError:
43 pass
44
45
46def run_eval(interpreter, input_image):

Callers 1

mainFunction · 0.85

Calls 5

SessionMethod · 0.45
get_nextMethod · 0.45
testMethod · 0.45
runMethod · 0.45

Tested by

no test coverage detected