[nativert] move constantfolder to libtorch (#156918)

Summary: att -- unit tests will be migrated later, since they still have unresolved deps.

Test Plan:
ci

Rollback Plan:

Differential Revision: D77159278

Pull Request resolved: https://github.com/pytorch/pytorch/pull/156918
Approved by: https://github.com/henryoier, https://github.com/zhxchen17
This commit is contained in:
dolpm
2025-06-26 21:26:33 +00:00
committed by PyTorch MergeBot
parent 7f6e7103a3
commit 262654ee51
3 changed files with 221 additions and 0 deletions

View File

@ -602,6 +602,7 @@ libtorch_nativert_sources = [
"torch/nativert/executor/ExecutionPlanner.cpp",
"torch/nativert/executor/ExecutionFrame.cpp",
"torch/nativert/executor/GraphExecutorBase.cpp",
"torch/nativert/executor/ConstantFolder.cpp",
"torch/nativert/executor/OpKernel.cpp",
"torch/nativert/executor/PlacementUtils.cpp",
"torch/nativert/executor/SerialGraphExecutor.cpp",