Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The shape of running_mean #98

Open
wei61547-jp opened this issue Oct 14, 2021 · 0 comments
Open

The shape of running_mean #98

wei61547-jp opened this issue Oct 14, 2021 · 0 comments

Comments

@wei61547-jp
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant