Skip to content

Commit

Permalink
Renamed graph_runtime references to graph_executor.
Browse files Browse the repository at this point in the history
Following TVM's rename in apache/tvm#7653,
update to avoid errors when tvm.contrib.graph_runtime is removed
entirely.
  • Loading branch information
Lunderberg committed Aug 13, 2021
1 parent c18a224 commit 06c911e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/deploy/python_deploy.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
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)
Expand All @@ -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()
Expand Down

0 comments on commit 06c911e

Please sign in to comment.