fix_an_error

shanyi15-patch-2
fengjiayi 7 years ago
parent cf87f39b2b
commit e26cc4fe73

@ -49,7 +49,7 @@ class TestProfiler(unittest.TestCase):
exe.run(startup_program)
pass_acc_calculator = fluid.average.WeightedAverage()
with profiler.profiler(state, 'total') as prof:
with profiler.profiler(state, 'total', profile_path) as prof:
for iter in range(10):
if iter == 2:
profiler.reset_profiler()

Loading…
Cancel
Save