You are viewing a plain text version of this content. The canonical link for it is here.
Posted to discuss-archive@tvm.apache.org by Hao Cheng via Apache TVM Discuss <no...@discuss.tvm.ai> on 2021/08/07 03:28:31 UTC
[Apache TVM Discuss] [Questions]
Dev[0]._rpc_sess.get_function("tvm.graph_executor_debug.create")
In my code, want to `use debug_executor` to extrace the cost time for each ops.
my code is kind of the following
```
from tvm.contrib.debugger import debug_executor as graph_executor
with tvm.transform.PassContext(opt_level=3, config={"relay.backend.use_auto_scheduler": True}):
lib = relay.build(ir_mod, target=config.target, params=params)
rlib = remote.load_module(os.path.basename(lib_file_path))
m = graph_executor.create(rlib.graph_json, rlib, remote.cpu(0), dump_root="/tmp/tvmdbg")
# set inputs
m.set_input('data', tvm.nd.array(data.astype(dtype)))
# execute
m.run()
```
but got errors:
```
File "tvm/python/tvm/contrib/debugger/debug_executor.py", line 63, in create
fcreate = dev[0]._rpc_sess.get_function("tvm.graph_executor_debug.create")
File "tvm/python/tvm/rpc/client.py", line 73, in get_function
return self._sess.get_function(name)
File "tvm/python/tvm/runtime/module.py", line 91, in get_function
raise AttributeError("Module has no function '%s'" % name)
AttributeError: Module has no function 'tvm.graph_executor_debug.create'
```
---
[Visit Topic](https://discuss.tvm.apache.org/t/dev-0-rpc-sess-get-function-tvm-graph-executor-debug-create/10728/1) to respond.
You are receiving this because you enabled mailing list mode.
To unsubscribe from these emails, [click here](https://discuss.tvm.apache.org/email/unsubscribe/a630891eb5b8082f67d5debfb05b91d18e9130289f26ff4d2f1b6a8a379b89da).