Commit e97e22df authored by Yeqing Li's avatar Yeqing Li Committed by A. Unique TensorFlower
Browse files

Internal change

PiperOrigin-RevId: 274921478
parent 32229eae
...@@ -218,14 +218,21 @@ class RetinanetBenchmarkReal(RetinanetAccuracy): ...@@ -218,14 +218,21 @@ class RetinanetBenchmarkReal(RetinanetAccuracy):
self._setup() self._setup()
params = copy.deepcopy(self.params_override) params = copy.deepcopy(self.params_override)
params['train']['total_steps'] = 1875 # One epoch. params['train']['total_steps'] = 1875 # One epoch.
params['train']['iterations_per_loop'] = 125 # The iterations_per_loop must be one, otherwise the number of examples per
# second would be wrong. Currently only support calling callback per batch
# when each loop only runs on one batch, i.e. host loop for one step. The
# performance of this situation might be lower than the case of
# iterations_per_loop > 1.
# Related bug: b/135933080
params['train']['iterations_per_loop'] = 1
params['eval']['eval_samples'] = 8 params['eval']['eval_samples'] = 8
FLAGS.params_override = json.dumps(params) FLAGS.params_override = json.dumps(params)
FLAGS.model_dir = self._get_model_dir('real_benchmark_8_gpu_coco') FLAGS.model_dir = self._get_model_dir('real_benchmark_8_gpu_coco')
# Sets timer_callback to None as we do not use it now. if self.timer_callback is None:
self.timer_callback = None logging.error('Cannot measure performance without timer callback')
else:
self._run_and_report_benchmark()
self._run_and_report_benchmark()
if __name__ == '__main__': if __name__ == '__main__':
tf.test.main() tf.test.main()
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment