aead3912c8d1c228a6240057d4c1072f96fab2a9,official/mnist/mnist_tpu.py,,eval_input_fn,#Any#,136
Before Change
batch_size = params["batch_size"]
data_dir = params["data_dir"]
ds = dataset.test(data_dir).apply(
tf.contrib.data.batch_and_drop_remainder(batch_size))
images, labels = ds.make_one_shot_iterator().get_next()
return images, labels
def predict_input_fn(params):
After Change
def eval_input_fn(params):
batch_size = params["batch_size"]
data_dir = params["data_dir"]
ds = dataset.test(data_dir).batch(batch_size, drop_remainder=True)
return ds
def predict_input_fn(params):
batch_size = params["batch_size"]
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 6
Instances
Project Name: tensorflow/models
Commit Name: aead3912c8d1c228a6240057d4c1072f96fab2a9
Time: 2018-12-19
Author: derek.murray@gmail.com
File Name: official/mnist/mnist_tpu.py
Class Name:
Method Name: eval_input_fn
Project Name: tensorflow/tpu
Commit Name: e564f327a77284d4d3a349221af6511c7c65ad98
Time: 2018-07-31
Author: rsopher@gmail.com
File Name: models/official/retinanet/dataloader.py
Class Name: InputReader
Method Name: __call__
Project Name: tensorflow/models
Commit Name: aead3912c8d1c228a6240057d4c1072f96fab2a9
Time: 2018-12-19
Author: derek.murray@gmail.com
File Name: official/mnist/mnist_tpu.py
Class Name:
Method Name: train_input_fn