Unverified Commit 9b114c15 authored by Bingchen Zhao's avatar Bingchen Zhao Committed by GitHub
Browse files

Update optimized_sync_batchnorm_kernel.py

in line 54, running_var should be running_variance..
parent a8c2b7dd
......@@ -51,7 +51,7 @@ class SyncBatchnormFunction(Function):
running_variance.data = running_variance.data * (1-momentum) + momentum*r_v_inc
else:
mean = running_mean.data
inv_std = 1.0 / torch.sqrt(running_var.data + eps)
inv_std = 1.0 / torch.sqrt(running_variance.data + eps)
ctx.save_for_backward(input, weight, mean, inv_std)
ctx.process_group = process_group
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment