cbef674a4e8553cd3817b94b707a63d2214c7533,models/experimental/resnet50_keras/resnet50.py,,main,#Any#,151

Before Change


                   "generator.")
      // We feed the inputs from a Python generator, so we need to build a single
      // batch for all of the cores, which will be split on TPU.
      imagenet_eval = imagenet_input.ImageNetInput(
          is_training=False,
          data_dir=FLAGS.data,
          per_core_batch_size=BATCH_SIZE)
      score = eval_utils.multi_top_k_accuracy(
          model, imagenet_eval.evaluation_generator(K.get_session()),
          EVAL_STEPS)
    else:
      imagenet_eval = imagenet_input.ImageNetInput(
          is_training=False,
          data_dir=FLAGS.data,

After Change


    // If evaluating top 5 accuracy, we feed the inputs from a Python generator,
    // so we need to build a single batch for all of the cores, which will be
    // split on TPU.
    per_core_batch_size = (
        BATCH_SIZE if FLAGS.eval_top_5_accuracy else PER_CORE_BATCH_SIZE)
    imagenet_validation = imagenet_input.ImageNetInput(
        is_training=False,
        data_dir=FLAGS.data,
        per_core_batch_size=per_core_batch_size)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: tensorflow/tpu
Commit Name: cbef674a4e8553cd3817b94b707a63d2214c7533
Time: 2018-11-09
Author: xiejw0217@gmail.com
File Name: models/experimental/resnet50_keras/resnet50.py
Class Name:
Method Name: main


Project Name: tensorflow/tpu
Commit Name: a5364c4875ddbe5d2150a2f822fa916428f29651
Time: 2018-04-27
Author: 1517779+sb2nov@users.noreply.github.com
File Name: models/official/resnet/resnet_main.py
Class Name:
Method Name: main


Project Name: tensorflow/tpu
Commit Name: 21cd0774c8c3d41a8464427c81629075c953e7e3
Time: 2018-09-05
Author: xiejw0217@gmail.com
File Name: models/experimental/keras/resnet50.py
Class Name:
Method Name: main