[nativert] Move SerialGraphExecutor to PyTorch core (#156459)

Summary: `SerialGraphExecutor` inherits from `GraphExecutorBase` and executes all nodes in the graph in a serial manner

Test Plan:
CI

Rollback Plan:

Differential Revision: D76917966

Pull Request resolved: https://github.com/pytorch/pytorch/pull/156459
Approved by: https://github.com/zhxchen17, https://github.com/jingsh
This commit is contained in:
Yiming Zhou
2025-06-21 01:32:02 +00:00
committed by PyTorch MergeBot
parent a67eb1a0d6
commit e98dd95446
3 changed files with 57 additions and 0 deletions

View File

@ -603,6 +603,7 @@ libtorch_nativert_sources = [
"torch/nativert/executor/GraphExecutorBase.cpp",
"torch/nativert/executor/OpKernel.cpp",
"torch/nativert/executor/PlacementUtils.cpp",
"torch/nativert/executor/SerialGraphExecutor.cpp",
"torch/nativert/executor/Weights.cpp",
"torch/nativert/executor/memory/FunctionSchema.cpp",
"torch/nativert/common/FileUtil.cpp",