pytorch/torch/export
Shangdi Yu 11a3565f18 [Torch Native] Add test for packaging weight (#158750)
Add test that require weights to be packaged for torch native

For now, we need `package_weights_in_so=True` for compile standalone. The constants are in a `.o` file and will be added as a source to the CMakeLists.txt of the model.

After we added weight deduping, we should be able to let this config be False.

```
python test/inductor/test_aot_inductor_package.py  -k test_compile_with_exporter_weights
```

Pull Request resolved: https://github.com/pytorch/pytorch/pull/158750
Approved by: https://github.com/desertfire
2025-08-09 01:04:21 +00:00
..
experimental [Torch Native] Add test for packaging weight (#158750) 2025-08-09 01:04:21 +00:00
passes [export] Apply move_to_device_pass to all submodules (#159992) 2025-08-07 18:51:15 +00:00
pt2_archive [AOTI] normalize_path_separator file path for Windows. (#159726) 2025-08-04 15:57:19 +00:00
__init__.py [export] Improve error messages (#159881) 2025-08-05 22:26:48 +00:00
_draft_export.py [draft export] logging (#159004) 2025-07-31 05:52:13 +00:00
_remove_auto_functionalized_pass.py
_remove_effect_tokens_pass.py [BE][1/16] fix typos in torch/ (#156311) 2025-07-09 11:02:22 +00:00
_safeguard.py
_swap.py [BE][PYFMT] migrate PYFMT for torch/[e-n]*/ to ruff format (#144553) 2025-06-17 08:18:47 +00:00
_trace.py Add expanded_def option for FX printing, render descriptor, update tests (#158708) 2025-07-25 13:22:32 +00:00
_tree_utils.py
_unlift.py Grab bag of (mostly) typing improvements (#158075) 2025-07-21 19:17:01 +00:00
_wrapper_utils.py
custom_obj.py
custom_ops.py
decomp_utils.py
dynamic_shapes.py [export] Update docs (#157750) 2025-07-16 19:53:12 +00:00
exported_program.py [export] Fix nn_module_stack of assert_tensor_metadata nodes (#159625) 2025-08-02 02:52:42 +00:00
graph_signature.py [BE][1/16] fix typos in torch/ (#156311) 2025-07-09 11:02:22 +00:00
unflatten.py unflatten closure (#159418) 2025-07-30 15:42:18 +00:00