Hi, when I load a model with onnx format and compile it with target cuda, then error ‘Direct host side access to device memory is detected in fuse_reshape_broadcast_mul_conv2d_broadcast_mul_broadcast_add_elemwise_add. Did you forget to bind’ came out.
Traceback (most recent call last):
File "from_onnx.py", line 84, in <module>
graph, lib, params = nnvm.compiler.build(sym, target, shape_dict, params=params)
File "/home/wyq/tvm/nnvm/python/nnvm/compiler/build_module.py", line 307, in build
graph = graph.apply("GraphCompile")
File "/home/wyq/tvm/nnvm/python/nnvm/graph.py", line 234, in apply
check_call(_LIB.NNGraphApplyPasses(self.handle, npass, cpass, ctypes.byref(ghandle)))
File "/home/wyq/tvm/nnvm/python/nnvm/_base.py", line 75, in check_call
raise NNVMError(py_str(_LIB.NNGetLastError()))
nnvm._base.NNVMError: TVMCall CFunc Error:
Traceback (most recent call last):
File "/home/wyq/tvm/python/tvm/_ffi/_ctypes/function.py", line 54, in cfun
rv = local_pyfunc(*pyargs)
File "/home/wyq/tvm/nnvm/python/nnvm/compiler/build_module.py", line 124, in _build
return tvm.build(funcs, target=target, target_host=target_host)
File "/home/wyq/tvm/python/tvm/build_module.py", line 462, in build
"Did you forget to bind?" % func.name)
ValueError: Direct host side access to device memory is detected in fuse_reshape_broadcast_mul_conv2d_broadcast_mul_broadcast_add_elemwise_add.
Did you forget to bind?
So how to fix it?