mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-22 06:11:27 +08:00
[jit] Remove graph() call from abstract Function interface. (#65967)
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/65967 Graph is an implementation detail. If user wants to get access to the underlying graph, they should be able to explicitly dynamic cast instead. ghstack-source-id: 141659819 Test Plan: no behavior change. Reviewed By: gmagogsfm Differential Revision: D31326153 fbshipit-source-id: a0e984f57c6013494b92a7095bf5bb660035eb84
This commit is contained in:
committed by
Facebook GitHub Bot
parent
7c48b9ee25
commit
b55a2500d2
@ -20,7 +20,7 @@ c10::IValue preprocess(
|
||||
c10::Dict<IValue, IValue> compiled(StringType::get(), StringType::get());
|
||||
|
||||
for (const auto& method : mod.get_methods()) {
|
||||
auto graph = method.function().graph()->copy();
|
||||
auto graph = toGraphFunction(method.function()).graph()->copy();
|
||||
// Must inline the graph for debug info map.
|
||||
Inline(*graph);
|
||||
// This is here because to test module hierarchy we will have
|
||||
|
Reference in New Issue
Block a user