-
Notifications
You must be signed in to change notification settings - Fork 3.8k
[Relax] Batch norm correctness on eval mode #17752
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
Changes from all commits
Commits
Show all changes
52 commits
Select commit
Hold shift + click to select a range
8b5a81d
trying to understand why batchnorm returns all zeros
hugolatendresse 99373ae
debugging training vs non-training batch norm
hugolatendresse 4f93317
merge main
hugolatendresse b0e1154
added training in attrs
hugolatendresse dde7872
training False
hugolatendresse dff60db
training argument in nn.py
hugolatendresse f1986d9
little cleanup before building
hugolatendresse 1545b99
fix copy-paste errors
hugolatendresse 77cc1d8
builds, but should probably just update nn.h instead
hugolatendresse 0dbf8fe
batch_norm build
hugolatendresse 1164d21
first batchnorm test passes with .eval(), but not without, and copy f…
hugolatendresse a72ce6e
copy failing
hugolatendresse 42728f7
todo
hugolatendresse 9ee0672
cleanup
hugolatendresse e3f0236
training failing
hugolatendresse 3f68087
no need to pass center and scale since default ok
hugolatendresse 5cd314d
cleanup
hugolatendresse d5d30b7
cleanup
hugolatendresse 125a9a6
reformat
hugolatendresse 281fb53
Merge branch 'main' into batch_norm
hugolatendresse 3f0eaea
batch norm default and print torch version
hugolatendresse 79e3ec6
whitespace
hugolatendresse 79c4a0e
remove dummy test
hugolatendresse 2dc643e
Merge branch 'main' of https://github.com/apache/tvm into batch_norm
hugolatendresse b9697f3
getting a tuple as output of batchnorm
hugolatendresse bc18182
output now of the right dimension, and close! but is not exactly equal
hugolatendresse e2e7263
still not the same with 2 1 2 2
hugolatendresse 4cdb05a
missing eps
hugolatendresse b256163
last small test passes, but most tests still fail
hugolatendresse ab8d75c
passes
hugolatendresse 7cb5a56
passes
hugolatendresse 536310a
need to fix test_batch_norm7
hugolatendresse 4c55f20
commented out tests that pass
hugolatendresse e99d659
legalize tests
hugolatendresse 56b3999
correct calc of data for everyone
hugolatendresse fc6b03a
track running stats is equivalent to training! passes all
hugolatendresse 7139590
all tests pass except for cache size
hugolatendresse 267f011
all batch norm only pass!
hugolatendresse 7a5cadd
all exported tests work, moved to main script
hugolatendresse e76ab8c
need to fix legalize tests
hugolatendresse 7c99174
Merge branch 'main' into batch_norm
hugolatendresse 54f00f1
first legalize test passes
hugolatendresse d74cfbf
all legalize pass
hugolatendresse a9de5ef
all tests pass
hugolatendresse 6458a64
linting
hugolatendresse cd8fa7b
cleanup
hugolatendresse 73ef53e
cleanup batchnorm
hugolatendresse 1578ae2
linting
hugolatendresse 95254bc
smaller third test
hugolatendresse 6984609
formatting
hugolatendresse 8233013
renaming
hugolatendresse 8c5cfc7
resolve conflicts with main
hugolatendresse File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good to add a type annotation in any of followup PRs.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Got it, will do, thanks