DmitryUlyanov / texture_nets

Code for "Texture Networks: Feed-forward Synthesis of Textures and Stylized Images" paper.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

The shape of running_mean

wei61547-jp opened this issue · comments

Why the shape of running_mean in Instancenorm is [C] not [N,C] ?
the code " self.running_var:copy(self.bn.running_var:view(input:size(1),self.nOutput):mean(1))"
I don't the reason running_mean/var view to (N,C) and mean(1)? So it similar to Batchnorm?
I find the cuda-kernel of Instancenorm used batchnorm's kernel ,the shape of running_men in Bn is [C], Instance's also [ C]too?