pytorch/torch/_export/passes
Chen Lai 7827afca14 Copy the constant folding pass to the pass under export/passes folder (#127456)
It's a generic pass and I'm trying to find a good place to host it. It's currently needed by quantization flow. See context in D55930580, it's too much effort to land a fix in the inductor folder.

Differential Revision: [D57934182](https://our.internmc.facebook.com/intern/diff/D57934182/)
Pull Request resolved: https://github.com/pytorch/pytorch/pull/127456
Approved by: https://github.com/angelayi
2024-05-30 18:04:08 +00:00
..
__init__.py
_node_metadata_hook.py Register creak_node_hook (#126671) 2024-05-24 23:32:15 +00:00
add_runtime_assertions_for_constraints_pass.py Don't assume compare_arg is fx.Node (#126771) 2024-05-21 19:53:21 +00:00
collect_tracepoints_pass.py [export] Fix up nn_module_stack for nodes occured around tracepoint ops. (#124457) 2024-04-23 20:26:44 +00:00
constant_folding.py Copy the constant folding pass to the pass under export/passes folder (#127456) 2024-05-30 18:04:08 +00:00
functionalize_side_effectful_ops_pass.py
lift_constants_pass.py [export] handle constant aliasing for export (#125509) 2024-05-10 00:14:37 +00:00
remove_runtime_assertions.py
replace_set_grad_with_hop_pass.py Forward fix failures for torch.export switch to predispatch (#126081) 2024-05-15 18:13:06 +00:00
replace_sym_size_ops_pass.py
replace_view_ops_with_view_copy_ops_pass.py