Skip to content

Commit

Permalink
Update run_nn.py
Browse files Browse the repository at this point in the history
fixed multi-gpu
  • Loading branch information
mravanelli authored Mar 10, 2018
1 parent ec534da commit 6992ecd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions run_nn.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,10 @@


[loss,err,pout] = net(inp,lab,test_flag)

if multi_gpu:
loss=loss.mean()
err=err.mean()

if do_forward:
if rnn==1:
Expand Down

0 comments on commit 6992ecd

Please sign in to comment.