Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions python/tvm/driver/tvmc/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
import tvm
from tvm import rpc
from tvm.autotvm.measure import request_remote
from tvm.contrib import graph_executor as runtime
from tvm.contrib import graph_executor as executor
from tvm.contrib.debugger import debug_executor
from . import TVMCException
from .arguments import TVMCSuppressedArgumentParser
Expand Down Expand Up @@ -442,7 +442,7 @@ def run_module(
number : int, optional
The number of runs to measure within each repeat.
profile : bool
Whether to profile the run with the debug runtime.
Whether to profile the run with the debug executor.
end_to_end : bool
Whether to measure the time of memory copies as well as model
execution. Turning this on can provide a more realistic estimate
Expand Down Expand Up @@ -532,15 +532,15 @@ def run_module(

# TODO(gromero): Adjust for micro targets.
if profile:
logger.debug("Creating runtime with profiling enabled.")
logger.debug("Creating executor with profiling enabled.")
module = debug_executor.create(tvmc_package.graph, lib, dev, dump_root="./prof")
else:
if device == "micro":
logger.debug("Creating runtime (micro) with profiling disabled.")
logger.debug("Creating executor (micro) with profiling disabled.")
module = tvm.micro.create_local_graph_executor(tvmc_package.graph, lib, dev)
else:
logger.debug("Creating runtime with profiling disabled.")
module = runtime.create(tvmc_package.graph, lib, dev)
logger.debug("Creating executor with profiling disabled.")
module = executor.create(tvmc_package.graph, lib, dev)

logger.debug("Loading params into the runtime module.")
module.load_params(tvmc_package.params)
Expand Down