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

Added missing InstanceNorm module. #522

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

joverwey
Copy link
Contributor

I noticed that InstanceNorm was not implemented. I tried to follow the same pattern as BatchNorm with a few exceptions.
For BatchNorm, the current implementation always uses weights and biases and always keeps track of running stats.
In the PyTorch implementation this is optional. For InstanceNorm I do need to be able to enable/disable this so I added flags for

  • affine
  • track_running_stats

like the PyTorch implementation has.

Let me know if I missed anything.

@joverwey
Copy link
Contributor Author

Clippy seems to be failing in a file I didn't touch? Any idea how I can fix this?

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

Successfully merging this pull request may close these issues.

None yet

1 participant