Skip to content

Commit

Permalink
fix syncbn
Browse files Browse the repository at this point in the history
  • Loading branch information
ppwwyyxx committed Mar 17, 2020
1 parent d89b6f0 commit bc5b5cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tensorpack/models/batch_norm.py
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ def BatchNorm(inputs, axis=None, *, training=None, momentum=0.9, epsilon=1e-5,

if sync_statistics is not None:
# sync bn
batch_mean, batch_var = get_sync_bn_mean_var(inputs, red_axis)
batch_mean, batch_var = get_sync_bn_mean_var(inputs, red_axis, sync_statistics)
batch_mean_vec = batch_mean
batch_var_vec = batch_var

Expand Down

0 comments on commit bc5b5cc

Please sign in to comment.