-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tvm_complier error #6
Comments
@XinghaoChen9 It looks like some kind of network issues. It doesn't related to the library. |
Hi Markson14, /home/acarlos/tvm/include/tvm/runtime/logging.h: In function ‘std::unique_ptr<std::__cxx11::basic_string > tvm::runtime::detail::LogCheckFormat(const X&, const Y&)’: |
Hi! markson14:
Thanks for your wonderful project, I have met a problem recently, could you help me?
After installing tvm and llvm, I can run complier.py successfully and thus generate the .so .params .json files. However, when I change
target = tvm.target.create("llvm -mcpu=haswell")
totarget = tvm.target.arm_cpu('rasp3b')
, I encountered some errors.log
`download failed due to URLError(ConnectionRefusedError(111, 'Connection refused')), retrying, 2 attempts left
download failed due to URLError(ConnectionRefusedError(111, 'Connection refused')), retrying, 1 attempt left
WARNING:root:Failed to download tophub package for arm_cpu: <urlopen error [Errno 111] Connection refused>
download failed due to URLError(ConnectionRefusedError(111, 'Connection refused')), retrying, 2 attempts left
download failed due to URLError(ConnectionRefusedError(111, 'Connection refused')), retrying, 1 attempt left
WARNING:root:Failed to download tophub package for llvm: <urlopen error [Errno 111] Connection refused>
download failed due to URLError(ConnectionRefusedError(111, 'Connection refused')), retrying, 2 attempts left
download failed due to URLError(ConnectionRefusedError(111, 'Connection refused')), retrying, 1 attempt left
Traceback (most recent call last):
File "./complier.py", line 44, in
main()
File "./complier.py", line 33, in main
params=relay_params)
File "/home/cxh/project/tvm/python/tvm/relay/build_module.py", line 255, in build
graph_json, mod, params = bld_mod.build(mod, target, target_host, params)
File "/home/cxh/project/tvm/python/tvm/relay/build_module.py", line 121, in build
self._build(mod, target, target_host)
File "/home/cxh/project/tvm/python/tvm/_ffi/ctypes/packed_func.py", line 225, in call
raise get_last_ffi_error()
tvm.ffi.base.TVMError: Traceback (most recent call last):
[bt] (8) /home/cxh/project/tvm/build/libtvm.so(tvm::relay::ExprMutator::VisitExpr(tvm::RelayExpr const&)+0x8e) [0x7f15b1068a2e]
[bt] (7) /home/cxh/project/tvm/build/libtvm.so(tvm::relay::ExprFunctor<tvm::RelayExpr (tvm::RelayExpr const&)>::VisitExpr(tvm::RelayExpr const&)+0x82) [0x7f15b106fca2]
[bt] (6) /home/cxh/project/tvm/build/libtvm.so(tvm::relay::ExprFunctor<tvm::RelayExpr (tvm::RelayExpr const&)>::InitVTable()::{lambda(tvm::runtime::ObjectRef const&, tvm::relay::ExprFunctor<tvm::RelayExpr (tvm::RelayExpr const&)>)#6}::_FUN(tvm::runtime::ObjectRef const&, tvm::relay::ExprFunctor<tvm::RelayExpr (tvm::RelayExpr const&)>)+0x27) [0x7f15b106ad77]
[bt] (5) /home/cxh/project/tvm/build/libtvm.so(tvm::relay::MixedModeMutator::VisitExpr(tvm::relay::CallNode const*)+0x43) [0x7f15b0ebf1e3]
[bt] (4) /home/cxh/project/tvm/build/libtvm.so(tvm::relay::ForwardRewriter::Rewrite(tvm::relay::CallNode const*, tvm::RelayExpr const&)+0x139f) [0x7f15b0ef192f]
[bt] (3) /home/cxh/project/tvm/build/libtvm.so(tvm::runtime::TypedPackedFunc<tvm::RelayExpr (tvm::relay::Call const&, tvm::runtime::Array<tvm::RelayExpr, void> const&, tvm::runtime::ObjectRef const&)>::AssignTypedLambda<tvm::RelayExpr ()(tvm::relay::Call const&, tvm::runtime::Array<tvm::RelayExpr, void> const&, tvm::runtime::ObjectRef const&)>(tvm::RelayExpr ()(tvm::relay::Call const&, tvm::runtime::Array<tvm::RelayExpr, void> const&, tvm::runtime::ObjectRef const&))::{lambda(tvm::runtime::TVMArgs const&, tvm::runtime::TVMRetValue*)#1}::operator()(tvm::runtime::TVMArgs const&, tvm::runtime::TVMRetValue*) const+0x24b) [0x7f15b0e6f3fb]
[bt] (2) /home/cxh/project/tvm/build/libtvm.so(tvm::RelayExpr tvm::relay::LayoutRewritertvm::relay::alter_op_layout::AlterTransformMemorizer(tvm::relay::Call const&, tvm::runtime::Array<tvm::RelayExpr, void> const&, tvm::runtime::ObjectRef const&)+0xca0) [0x7f15b0e6d0d0]
[bt] (1) /home/cxh/project/tvm/build/libtvm.so(tvm::relay::alter_op_layout::AlterTransformMemorizer::CallWithNewLayouts(tvm::relay::Call const&, std::vector<tvm::RelayExpr, std::allocatortvm::RelayExpr > const&)+0x81b) [0x7f15b0e6a9cb]
[bt] (0) /home/cxh/project/tvm/build/libtvm.so(+0xec763b) [0x7f15b114a63b]
File "/home/cxh/project/tvm/python/tvm/_ffi/_ctypes/packed_func.py", line 78, in cfun
rv = local_pyfunc(*pyargs)
File "/home/cxh/project/tvm/python/tvm/relay/op/nn/_nn.py", line 98, in alter_op_layout_conv2d
return topi.nn.conv2d_alter_layout(attrs, inputs, tinfos, out_type)
File "", line 2, in conv2d_alter_layout
File "/home/cxh/project/tvm/python/tvm/target/generic_func.py", line 267, in dispatch_func
return dispatch_dict[k](*args, **kwargs)
File "/home/cxh/project/tvm/topi/python/topi/arm_cpu/conv2d_alter_op.py", line 40, in _alter_conv2d_layout
relay.op.get("nn.conv2d"), attrs, tinfos, out_type, target)
File "/home/cxh/project/tvm/python/tvm/relay/backend/compile_engine.py", line 199, in select_implementation
outs = impl.compute(attrs, inputs, out_type)
File "/home/cxh/project/tvm/python/tvm/relay/op/op.py", line 89, in compute
return _OpImplementationCompute(self, attrs, inputs, out_type)
File "/home/cxh/project/tvm/python/tvm/_ffi/_ctypes/packed_func.py", line 225, in call
raise get_last_ffi_error()
[bt] (3) /home/cxh/project/tvm/build/libtvm.so(TVMFuncCall+0x65) [0x7f15b114dd35]
[bt] (2) /home/cxh/project/tvm/build/libtvm.so(+0xe00aa8) [0x7f15b1083aa8]
[bt] (1) /home/cxh/project/tvm/build/libtvm.so(tvm::relay::OpImplementation::Compute(tvm::Attrs const&, tvm::runtime::Array<tvm::te::Tensor, void> const&, tvm::Type const&)+0xb1) [0x7f15b1083871]
[bt] (0) /home/cxh/project/tvm/build/libtvm.so(+0xec763b) [0x7f15b114a63b]
File "/home/cxh/anaconda2/envs/abc/lib/python3.7/urllib/request.py", line 1319, in do_open
encode_chunked=req.has_header('Transfer-encoding'))
File "/home/cxh/anaconda2/envs/abc/lib/python3.7/http/client.py", line 1252, in request
self._send_request(method, url, body, headers, encode_chunked)
File "/home/cxh/anaconda2/envs/abc/lib/python3.7/http/client.py", line 1298, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File "/home/cxh/anaconda2/envs/abc/lib/python3.7/http/client.py", line 1247, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "/home/cxh/anaconda2/envs/abc/lib/python3.7/http/client.py", line 1026, in _send_output
self.send(msg)
File "/home/cxh/anaconda2/envs/abc/lib/python3.7/http/client.py", line 966, in send
self.connect()
File "/home/cxh/anaconda2/envs/abc/lib/python3.7/http/client.py", line 1414, in connect
super().connect()
File "/home/cxh/anaconda2/envs/abc/lib/python3.7/http/client.py", line 938, in connect
(self.host,self.port), self.timeout, self.source_address)
File "/home/cxh/anaconda2/envs/abc/lib/python3.7/socket.py", line 728, in create_connection
raise err
File "/home/cxh/anaconda2/envs/abc/lib/python3.7/socket.py", line 716, in create_connection
sock.connect(sa)
File "/home/cxh/project/tvm/python/tvm/_ffi/_ctypes/packed_func.py", line 78, in cfun
rv = local_pyfunc(*pyargs)
File "/home/cxh/project/tvm/python/tvm/relay/op/strategy/generic.py", line 169, in _compute_conv2d
return [topi_compute(*args)]
File "/home/cxh/project/tvm/python/tvm/autotvm/task/topi_integration.py", line 155, in wrapper
node = topi_compute(cfg, *args)
File "/home/cxh/project/tvm/topi/python/topi/arm_cpu/conv2d.py", line 41, in conv2d_nchw_spatial_pack
dilation, out_dtype, num_tile=2)
File "/home/cxh/project/tvm/topi/python/topi/arm_cpu/conv2d_spatial_pack.py", line 83, in conv2d_spatial_pack_nchw
'arm_cpu', 'rk3399', 'conv2d_nchw_spatial_pack.arm_cpu')
File "/home/cxh/project/tvm/python/tvm/autotvm/tophub.py", line 222, in load_reference_log
download_package(tophub_location, package_name)
File "/home/cxh/project/tvm/python/tvm/autotvm/tophub.py", line 187, in download_package
download(download_url, os.path.join(rootpath, package_name), True, verbose=0)
File "/home/cxh/project/tvm/python/tvm/contrib/download.py", line 111, in download
raise err
File "/home/cxh/project/tvm/python/tvm/contrib/download.py", line 97, in download
urllib2.urlretrieve(url, tempfile, reporthook=_download_progress)
File "/home/cxh/anaconda2/envs/abc/lib/python3.7/urllib/request.py", line 247, in urlretrieve
with contextlib.closing(urlopen(url, data)) as fp:
File "/home/cxh/anaconda2/envs/abc/lib/python3.7/urllib/request.py", line 222, in urlopen
return opener.open(url, data, timeout)
File "/home/cxh/anaconda2/envs/abc/lib/python3.7/urllib/request.py", line 525, in open
response = self._open(req, data)
File "/home/cxh/anaconda2/envs/abc/lib/python3.7/urllib/request.py", line 543, in _open
'_open', req)
File "/home/cxh/anaconda2/envs/abc/lib/python3.7/urllib/request.py", line 503, in _call_chain
result = func(*args)
File "/home/cxh/anaconda2/envs/abc/lib/python3.7/urllib/request.py", line 1362, in https_open
context=self._context, check_hostname=self._check_hostname)
File "/home/cxh/anaconda2/envs/abc/lib/python3.7/urllib/request.py", line 1321, in do_open
raise URLError(err)
ConnectionRefusedError: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:
urllib.error.URLError: <urlopen error [Errno 111] Connection refused>
`
Do you know why this occurs? Could you help me?
The text was updated successfully, but these errors were encountered: