OpInfo for torch.nn.functional.normalize#62635
OpInfo for torch.nn.functional.normalize#62635krshrimali wants to merge 12 commits intopytorch:masterfrom
torch.nn.functional.normalize#62635Conversation
🔗 Helpful links
💊 CI failures summary and remediationsAs of commit 4c7d80d (more details on the Dr. CI page): ✅ None of the CI failures appear to be your fault 💚
❄️ 1 failure tentatively classified as flakybut reruns have not yet been triggered to confirm:
|
| # RuntimeError: aliasOp != torch::jit::getOperatorAliasMap().end() | ||
| # INTERNAL ASSERT FAILED at "../torch/csrc/jit/passes/utils/check_alias_annotation.cpp":159, | ||
| # please report a bug to PyTorch. | ||
| SkipInfo('TestJit', 'test_variant_consistency_jit',), |
There was a problem hiding this comment.
From what I understood so far, it's probably because normalize calls norm and torch.div (or / operator) in its definition:
pytorch/torch/nn/functional.py
Lines 4437 to 4441 in 88af4d8
Hence the graph created from:
pytorch/torch/testing/_internal/jit_metaprogramming_utils.py
Lines 488 to 491 in 88af4d8
aten::normalize but instead has the nodes for norm and div. This leads to continuing from the loop here (no if condition satisfied): pytorch/torch/csrc/jit/passes/utils/check_alias_annotation.cpp
Lines 151 to 153 in 88af4d8
And hence the final failure here:
Was just trying to see what's happening. :) In case it helps!
|
@zou3519 would you make sure this covers the cases you need and shepherd this in? |
…//github.com/krshrimali/pytorch into opinfo/high_priority/nn/functional/normalize
|
Yes, can do! |
|
@zou3519 has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
|
@krshrimali could you rebase this please? |
|
Thanks for the ping, @zou3519 - I've rebased the branch. Also removed |
|
ping @zou3519 |
|
Sorry, I missed this notification. @krshrimali could you please rebase this again? (it looks like there are merge conflicts) |
Thanks, @zou3519 for taking a look. I understand, and I should have pinged again but I missed it as well. I have fixed the merge conflicts. :) Thanks again! |
|
@zou3519 has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
Summary: See pytorch/functorch#78 and #54261 cc: mruberry zou3519 Chillee Pull Request resolved: #62635 Reviewed By: H-Huang Differential Revision: D30136503 Pulled By: zou3519 fbshipit-source-id: 258c069f30d9c2a51ed27dadf94f3703b9432a4a
See pytorch/functorch#78 and #54261
cc: @mruberry @zou3519 @Chillee