From ca356ac07331b2571688d371d52402d23af991bb Mon Sep 17 00:00:00 2001 From: Andrew Reusch Date: Fri, 16 Apr 2021 11:16:12 -0700 Subject: [PATCH] Bring back GraphRuntimeFactory loader for now. * Address issue #7822. --- src/runtime/graph_executor/graph_executor_factory.cc | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/runtime/graph_executor/graph_executor_factory.cc b/src/runtime/graph_executor/graph_executor_factory.cc index a6cef931421b..8ea21cabf519 100644 --- a/src/runtime/graph_executor/graph_executor_factory.cc +++ b/src/runtime/graph_executor/graph_executor_factory.cc @@ -206,5 +206,16 @@ TVM_REGISTER_GLOBAL("tvm.graph_executor_factory.create") TVM_REGISTER_GLOBAL("runtime.module.loadbinary_GraphExecutorFactory") .set_body_typed(GraphExecutorFactoryModuleLoadBinary); +Module GraphRuntimeFactoryModuleLoadBinary(void* strm) { + LOG(WARNING) << "You are loading a module which was built with GraphRuntimeFactory. " + << "GraphRuntime has been renamed to GraphExecutor, and support for loading " + << "GraphRuntimeFactory modules will be removed after the next TVM release. " + << "Please rebuild the module before then to avoid breakage."; + return GraphExecutorFactoryModuleLoadBinary(strm); +} + +TVM_REGISTER_GLOBAL("runtime.module.loadbinary_GraphRuntimeFactory") + .set_body_typed(GraphRuntimeFactoryModuleLoadBinary); + } // namespace runtime } // namespace tvm