diff --git a/benchmark/fluid/args.pyc b/benchmark/fluid/args.pyc deleted file mode 100644 index cac4bec4c1fc1776b3bf13a2cb913f12c81e8f4e..0000000000000000000000000000000000000000 Binary files a/benchmark/fluid/args.pyc and /dev/null differ diff --git a/benchmark/fluid/fluid_benchmark.py b/benchmark/fluid/fluid_benchmark.py index 12edcde1482274a2012374684357ab31f253e643..aa70783ecd68be543b2d5aabee96a5b09bd72e6a 100644 --- a/benchmark/fluid/fluid_benchmark.py +++ b/benchmark/fluid/fluid_benchmark.py @@ -156,23 +156,15 @@ def train(avg_loss, infer_prog, optimizer, train_reader, test_reader, batch_acc, start_time = time.time() num_samples = 0 - if arg.profile and pass_id == 0 and batch_id == 5: - profiler.start_profiler("All") - elif args.profile and pass_id == 0 and batch_id == 10: - profiler.stop_profiler("total", "/tmp/profile") - if args.use_reader_op: try: - loss = exe.run(train_prog, - fetch_list=[avg_loss], - use_program_cache=True) + loss = exe.run(train_prog, fetch_list=[avg_loss]) except fluid.core.EnforceNotMet as ex: break else: loss = exe.run(train_prog, feed=feeder.feed(data), - fetch_list=[avg_loss], - use_program_cache=True) + fetch_list=[avg_loss]) iters += 1 batch_id += 1 # FIXME(wuyi): For use_reader_op, if the current diff --git a/benchmark/fluid/recordio_converter.pyc b/benchmark/fluid/recordio_converter.pyc deleted file mode 100644 index 9b603f41c6748bb65da06076d5f69e4754c341c0..0000000000000000000000000000000000000000 Binary files a/benchmark/fluid/recordio_converter.pyc and /dev/null differ