This is an automated email from the ASF dual-hosted git repository.
moreau pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tvm-vta.git
The following commit(s) were added to refs/heads/main by this push:
new 4f7d249 Renamed graph_runtime references to graph_executor. (#31)
4f7d249 is described below
commit 4f7d2497c1655354f23c108d120c4ba030244d80
Author: Lunderberg <[email protected]>
AuthorDate: Thu Aug 19 15:38:44 2021 -0500
Renamed graph_runtime references to graph_executor. (#31)
Following TVM's rename in https://github.com/apache/tvm/pull/7653,
update to avoid errors when tvm.contrib.graph_runtime is removed
entirely.
---
apps/deploy/python_deploy.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/apps/deploy/python_deploy.py b/apps/deploy/python_deploy.py
index 2502046..4f447bb 100644
--- a/apps/deploy/python_deploy.py
+++ b/apps/deploy/python_deploy.py
@@ -26,7 +26,7 @@ import requests
import numpy as np
import tvm
-from tvm.contrib import graph_runtime, download
+from tvm.contrib import graph_executor, download
CTX = tvm.ext_dev(0)
@@ -50,7 +50,7 @@ def load_model():
lib = tvm.runtime.load_module("./build/model/lib.so")
- model = graph_runtime.create(graph, lib, CTX)
+ model = graph_executor.create(graph, lib, CTX)
with open("./build/model/params.params", "rb") as paramfile:
param_bytes = paramfile.read()