-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Ops(_native_batch_norm_legit_functional) | feat(torchlib) (#1143)
Fix #1140 Add (1) `aten::_native_batch_norm_legit.no_stats` (2) `aten::_to_copy` (3) `aten::_native_batch_norm_legit_functional` `aten::_native_batch_norm_legit_functional` is only invoked by Functionalization pass, so it can't be tested in op_test. It will be added into op_test in converter side. The only difference btween the op and `aten::_native_batch_norm_legit` is the output numbers. `aten::_native_batch_norm_legit_functional` returns running_mean and running_var according to https://github.com/pytorch/pytorch/blob/1488bafb274fcc82c8aac429bad61738bc3f950e/torch/_decomp/decompositions.py#L1804-L1826 `aten_native_batch_norm_legit` is split into two sample inputs to separately feed into different ONNX variants, since they require different set of arguments. --------- Co-authored-by: Justin Chu <[email protected]>
- Loading branch information
1 parent
fdef96c
commit 88ee668
Showing
4 changed files
with
226 additions
and
4 deletions.
There are no files selected for viewing
This file contains 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 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 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 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