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

Affine arg not passed to BFBatchNorm2d #2

Open
Aonnghus opened this issue Oct 27, 2022 · 0 comments
Open

Affine arg not passed to BFBatchNorm2d #2

Aonnghus opened this issue Oct 27, 2022 · 0 comments

Comments

@Aonnghus
Copy link

Hello,
I'd like to use your implementation of BFBatchNorm2d.
As I read the code, I observed that affine=True appears in the arguments of the constructor, but is not stored in an instance attribute self.affine nor passed to the super().__init__ method, whereas it is the case for num_features, eps and momentum.
self.affine is however used in the forward method.
If I am not mistaken, it means that passing affine=False to BFBatchNorm2d would not do anything?

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