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