-
Notifications
You must be signed in to change notification settings - Fork 26.3k
Open
Labels
high prioritymodule: fakeTensormodule: inductormodule: pt2-dispatcherPT2 dispatcher-related issues (e.g., aotdispatch, functionalization, faketensor, custom-op,PT2 dispatcher-related issues (e.g., aotdispatch, functionalization, faketensor, custom-op,oncall: pt2pt2: ubn"unbreak now" hi-pri, only applies to the PyTorch Compiler Team."unbreak now" hi-pri, only applies to the PyTorch Compiler Team.triagedThis issue has been looked at a team member, and triaged and prioritized into an appropriate moduleThis issue has been looked at a team member, and triaged and prioritized into an appropriate module
Description
pytorch/torch/_inductor/fx_utils.py
Lines 143 to 152 in 029e2b0
| def should_process_node(node): | |
| # node.target for nodes returning true from this function | |
| # are called under fake mode and does not work for inductor | |
| # lowerings. We check if the node.target is an aten operator | |
| # or operator.getitem which is used when returning multiple | |
| # tensors from an op. | |
| return node.op == "call_function" and ( | |
| isinstance(node.target, torch._ops.OpOverload) | |
| or node.target == operator.getitem | |
| ) |
This will probably lead to silent incorrectness?
Also, given that FakeTensorUpdater is load bearing (bugs in it will cause silent incorrectness), we should probably sit down and try to unittest it directly.
cc @ezyang @gchanan @kadeng @msaroufim @chauhang @penguinwu @eellison @voznesenskym @EikanWang @jgong5 @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @wenzhe-nrv @jiayisunx @ipiszy @chenyang78 @muchulee8 @amjames @aakhundov @bdhirsh
Metadata
Metadata
Assignees
Labels
high prioritymodule: fakeTensormodule: inductormodule: pt2-dispatcherPT2 dispatcher-related issues (e.g., aotdispatch, functionalization, faketensor, custom-op,PT2 dispatcher-related issues (e.g., aotdispatch, functionalization, faketensor, custom-op,oncall: pt2pt2: ubn"unbreak now" hi-pri, only applies to the PyTorch Compiler Team."unbreak now" hi-pri, only applies to the PyTorch Compiler Team.triagedThis issue has been looked at a team member, and triaged and prioritized into an appropriate moduleThis issue has been looked at a team member, and triaged and prioritized into an appropriate module