pytorch/test/cpp
Yiming Zhou aeb734f519 [nativert] Move GraphSignature to pytorch core (#152969)
Summary:
Torch Native Runtime RFC: https://github.com/pytorch/rfcs/pull/72

Added an in-memory representation for input and output specs of a graph. The GraphSignature class models the input and output specs of an exported graph produced by torch.export, which holds the graph information deserialized from the pt2 archive package. Runtime relies on the GraphSignature for weight name lookup and weight loading.

The serialization schema is defined in torch/_export/serde/schema.py
See more at: https://docs.pytorch.org/docs/stable/export.html#torch.export.ExportGraphSignature

Test Plan: Added tests under `test/cpp/nativert/test_graph_signature.cpp`

Differential Revision: D73895378

Pull Request resolved: https://github.com/pytorch/pytorch/pull/152969
Approved by: https://github.com/swolchok
2025-05-20 21:49:56 +00:00
..
aoti_abi_check Fix some CMake issues (#153686) 2025-05-19 00:31:34 +00:00
aoti_inference Fix some CMake issues (#153686) 2025-05-19 00:31:34 +00:00
api [Lint] Update clang-format to 19.1.4 (#153889) 2025-05-20 14:12:46 +00:00
c10d [BE]: Cleanup traceutils with fmtlib (#152265) 2025-05-04 22:27:19 +00:00
common [AOTI] Add ABI-compatiblity tests (#123848) 2024-04-19 00:51:24 +00:00
dist_autograd Fix some CMake issues (#153686) 2025-05-19 00:31:34 +00:00
jit [Lint] Update clang-format to 19.1.4 (#153889) 2025-05-20 14:12:46 +00:00
lazy Fix some CMake issues (#153686) 2025-05-19 00:31:34 +00:00
lite_interpreter_runtime Fix some CMake issues (#153686) 2025-05-19 00:31:34 +00:00
monitor
nativert [nativert] Move GraphSignature to pytorch core (#152969) 2025-05-20 21:49:56 +00:00
profiler [Lint] Update clang-format to 19.1.4 (#153889) 2025-05-20 14:12:46 +00:00
rpc Fix some CMake issues (#153686) 2025-05-19 00:31:34 +00:00
tensorexpr [Lint] Update clang-format to 19.1.4 (#153889) 2025-05-20 14:12:46 +00:00
__init__.py