Skip to content

Commit

Permalink
change some code style
Browse files Browse the repository at this point in the history
  • Loading branch information
kolinwei committed May 16, 2018
1 parent a85d79c commit 0753690
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions benchmark/fluid/mnist.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,8 +184,8 @@ def run_benchmark(model, args):
]
) # The accuracy is the accumulation of batches, but not the current batch.
accuracy.update(
value=np.array(np.mean(outs[1])),
weight=np.mean(np.array(outs[2])))
value=np.array(np.mean(outs[1])),
weight=np.mean(np.array(outs[2])))
iters += 1
num_samples += len(y_data)
loss = np.mean(np.array(outs[0]))
Expand Down

0 comments on commit 0753690

Please sign in to comment.