[schema_upgrader] add C++ upgrader for json based upgrading (#156761)

Differential Revision: [D77459912](https://our.internmc.facebook.com/intern/diff/D77459912)
Pull Request resolved: https://github.com/pytorch/pytorch/pull/156761
Approved by: https://github.com/angelayi
This commit is contained in:
Yidi Wu
2025-06-27 21:05:14 -07:00
committed by PyTorch MergeBot
parent 064a7db7fc
commit aeffb68d34
7 changed files with 777 additions and 1 deletions

View File

@ -895,6 +895,8 @@ libtorch_python_core_sources = [
"torch/csrc/mps/Module.cpp",
"torch/csrc/mtia/Module.cpp",
"torch/csrc/export/pybind.cpp",
"torch/csrc/export/upgrader.cpp",
"torch/csrc/export/example_upgraders.cpp",
"torch/csrc/inductor/aoti_package/pybind.cpp",
"torch/csrc/inductor/aoti_runner/pybind.cpp",
"torch/csrc/inductor/aoti_eager/kernel_holder.cpp",