Files
pytorch/torch/_higher_order_ops
Simon Fan 21697feff2 [hop] run local_map with interpreter to preserve fx_traceback annotations (#165336)
We have an issue when using fx_traceback.annotate and HOPs that trace joint graphs. HOPs have bodies that have already been traced by Dynamo, and after Animesh's PR, does have the annotations. But when we lower that Dynamo HOP body to aten in either pre-dispatch or post-dispatch, we need to propagate the annotations to the aten nodes.

AOTAutograd does this indirectly by piggybacking off the `PropagateUnbackedSymInts` fx.Interpreter. I'm not sure if all HOPs should be using it to trace their joints or not. This PR adds an interpreter to local_map's implementation.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/165336
Approved by: https://github.com/yushangdi
2025-10-16 02:53:17 +00:00
..
2025-10-06 16:14:36 +00:00
2025-10-06 16:14:36 +00:00
2025-10-06 16:14:36 +00:00
2025-10-06 16:14:36 +00:00
2025-10-13 01:48:55 +00:00
2025-10-06 16:14:36 +00:00
2025-10-06 16:14:36 +00:00