pytorch/test/package
Shangdi Yu 9f5153b1a4 Preserve GrpahModule node stack trace after torch package deserializaion re-tracing (#155638)
Summary:
urrently the node.meta["stack_trace"] is not preserved when we torch package/load GraphModule, which means the original stack trace is lost. When we re-trace the packaged graph module, we just get a stack trace like fx-generated._0......

Adding the node.meta["stack_trace"] to torch packaged graph module

Test Plan:
```
buck2 run @//mode/dev-nosan fbcode//caffe2/test:package -- -r  TestPackageFX
```

Rollback Plan:

Differential Revision: D76379692

Pull Request resolved: https://github.com/pytorch/pytorch/pull/155638
Approved by: https://github.com/angelayi
2025-06-12 03:48:27 +00:00
..
package_a
package_b
package_bc
package_c
package_d
package_e
test_trace_dep
__init__.py
common.py
generate_bc_packages.py Revert "Use absolute path path.resolve() -> path.absolute() (#129409)" 2025-01-04 14:17:20 +00:00
module_a_remapped_path.py
module_a.py
test_analyze.py
test_dependency_api.py Remove outdated test skipif conditions for Python3.9 (#146144) 2025-01-31 19:01:04 +00:00
test_dependency_hooks.py
test_digraph.py
test_directory_reader.py Remove outdated test skipif conditions for Python3.9 (#146144) 2025-01-31 19:01:04 +00:00
test_glob_group.py [4/N] Apply py39 ruff and pyupgrade fixes (#143257) 2025-01-04 10:47:51 +00:00
test_importer.py
test_load_bc_packages.py Revert "Use absolute path path.resolve() -> path.absolute() (#129409)" 2025-01-04 14:17:20 +00:00
test_mangling.py
test_misc.py Revert "Use absolute path path.resolve() -> path.absolute() (#129409)" 2025-01-04 14:17:20 +00:00
test_model.py Fix unused Python variables in test/[e-z]* (#136964) 2024-12-18 23:02:30 +00:00
test_package_fx.py Preserve GrpahModule node stack trace after torch package deserializaion re-tracing (#155638) 2025-06-12 03:48:27 +00:00
test_package_script.py Fix unused Python variables in test/[e-z]* (#136964) 2024-12-18 23:02:30 +00:00
test_repackage.py Fix unused Python variables in test/[e-z]* (#136964) 2024-12-18 23:02:30 +00:00
test_resources.py Remove outdated test skipif conditions for Python3.9 (#146144) 2025-01-31 19:01:04 +00:00
test_save_load.py Revert "Use absolute path path.resolve() -> path.absolute() (#129409)" 2025-01-04 14:17:20 +00:00