tom:

unbiased


I find that running_mean/var’s shape is C, not N * C in torch.nn.instancenorm, but according to the https://arxiv.org/pdf/1607.08022.pdf , the shape of mean/var is N * C .
And from the page in pytorch/Normalization.cpp at master · pytorch/pytorch · GitHub,
the code “at::alias(running_mean).copy_(running_mean_.view({ b, c }).mean(0, false)); }”
i don’t know the operation of “mean(0,false)” is use for and why?