Skip to content

Update batchnorm to support 2D tensors (ie. BatchNorm1D) and add unit test case. #795

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

Merged
merged 1 commit into from
Jan 11, 2022

Conversation

chaoz-dev
Copy link
Contributor

@chaoz-dev chaoz-dev commented Jan 4, 2022

Description

BatchNorm previously did not support 2D tensors, even though this is valid input (ie. BatchNorm1d). This change fixes this for the BatchNorm converter, as well as updating the unit tests to check against this.

Fixes # #692

Type of change

Please delete options that are not relevant and/or add your own.

  • Bug fix (non-breaking change which fixes an issue)
  • Unit tests for bug fix

Checklist:

  • My code follows the style guidelines of this project (You can use the linters)
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas and hacks
  • I have made corresponding changes to the documentation
  • I have added tests to verify my fix or my feature
  • New and existing unit tests pass locally with my changes

@chaoz-dev chaoz-dev marked this pull request as ready for review January 5, 2022 00:04
@chaoz-dev chaoz-dev changed the title Update batchnorm to support 2D tensors and add unit test case. Update batchnorm to support 2D tensors (ie. BatchNorm1D) and add unit test case. Jan 5, 2022
@narendasan
Copy link
Collaborator

LGTM! Thanks!

@narendasan narendasan merged commit 0c7493a into pytorch:master Jan 11, 2022
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.

2 participants