Skip to content

Instantly share code, notes, and snippets.

@Laurawly
Created June 6, 2019 18:17
Show Gist options
  • Save Laurawly/4cfe15314b6380e4d7876afc00860b6c to your computer and use it in GitHub Desktop.
Save Laurawly/4cfe15314b6380e4d7876afc00860b6c to your computer and use it in GitHub Desktop.
Traceback (most recent call last):
File "demo.py", line 19, in <module>
classifier = gcv.model_zoo.get_model('resnet50_v1d', pretrained=True, ctx=ctx)
File "/home/laurawly/workspace/install/lib/python3.6/site-packages/gluoncv-0.5.0-py3.6.egg/gluoncv/model_zoo/model_zoo.py", line 241, in get_model
File "/home/laurawly/workspace/install/lib/python3.6/site-packages/gluoncv-0.5.0-py3.6.egg/gluoncv/model_zoo/resnetv1b.py", line 629, in resnet50_v1d
File "/home/laurawly/workspace/install/lib/python3.6/site-packages/mxnet/gluon/block.py", line 402, in load_parameters
params[name]._load_init(loaded[name], ctx)
File "/home/laurawly/workspace/install/lib/python3.6/site-packages/mxnet/gluon/parameter.py", line 271, in _load_init
self._init_impl(data, ctx)
File "/home/laurawly/workspace/install/lib/python3.6/site-packages/mxnet/gluon/parameter.py", line 311, in _init_impl
self._data = [data.copyto(ctx) for ctx in self._ctx_list]
File "/home/laurawly/workspace/install/lib/python3.6/site-packages/mxnet/gluon/parameter.py", line 311, in <listcomp>
self._data = [data.copyto(ctx) for ctx in self._ctx_list]
File "/home/laurawly/workspace/install/lib/python3.6/site-packages/mxnet/ndarray/ndarray.py", line 2093, in copyto
return _internal._copyto(self, out=hret)
File "<string>", line 25, in _copyto
File "/home/laurawly/workspace/install/lib/python3.6/site-packages/mxnet/_ctypes/ndarray.py", line 92, in _imperative_invoke
ctypes.byref(out_stypes)))
File "/home/laurawly/workspace/install/lib/python3.6/site-packages/mxnet/base.py", line 253, in check_call
raise MXNetError(py_str(_LIB.MXGetLastError()))
mxnet.base.MXNetError: [11:16:04] src/ndarray/ndarray.cc:1280: GPU is not enabled
Stack trace:
[bt] (0) /home/laurawly/workspace/install/lib/python3.6/site-packages/mxnet/libmxnet.so(dmlc::LogMessageFatal::~LogMessageFatal()+0x4c) [0x7f7a976d5c]
[bt] (1) /home/laurawly/workspace/install/lib/python3.6/site-packages/mxnet/libmxnet.so(mxnet::CopyFromTo(mxnet::NDArray const&, mxnet::NDArray const&, int, bool)+0x550) [0x7f7bf6a9a0]
[bt] (2) /home/laurawly/workspace/install/lib/python3.6/site-packages/mxnet/libmxnet.so(mxnet::imperative::PushFComputeEx(std::function<void (nnvm::NodeAttrs const&, mxnet::OpContext const&, std::vector<mxnet::NDArray, std::allocator<mxnet::NDArray> > const&, std::vector<mxnet::OpReqType, std::allocator<mxnet::OpReqType> > const&, std::vector<mxnet::NDArray, std::allocator<mxnet::NDArray> > const&)> const&, nnvm::Op const*, nnvm::NodeAttrs const&, mxnet::Context const&, std::vector<mxnet::engine::Var*, std::allocator<mxnet::engine::Var*> > const&, std::vector<mxnet::engine::Var*, std::allocator<mxnet::engine::Var*> > const&, std::vector<mxnet::Resource, std::allocator<mxnet::Resource> > const&, std::vector<mxnet::NDArray*, std::allocator<mxnet::NDArray*> > const&, std::vector<mxnet::NDArray*, std::allocator<mxnet::NDArray*> > const&, std::vector<mxnet::OpReqType, std::allocator<mxnet::OpReqType> > const&)+0x364) [0x7f7befc344]
[bt] (3) /home/laurawly/workspace/install/lib/python3.6/site-packages/mxnet/libmxnet.so(mxnet::Imperative::InvokeOp(mxnet::Context const&, nnvm::NodeAttrs const&, std::vector<mxnet::NDArray*, std::allocator<mxnet::NDArray*> > const&, std::vector<mxnet::NDArray*, std::allocator<mxnet::NDArray*> > const&, std::vector<mxnet::OpReqType, std::allocator<mxnet::OpReqType> > const&, mxnet::DispatchMode, mxnet::OpStatePtr)+0x6d8) [0x7f7beed4d8]
[bt] (4) /home/laurawly/workspace/install/lib/python3.6/site-packages/mxnet/libmxnet.so(mxnet::Imperative::Invoke(mxnet::Context const&, nnvm::NodeAttrs const&, std::vector<mxnet::NDArray*, std::allocator<mxnet::NDArray*> > const&, std::vector<mxnet::NDArray*, std::allocator<mxnet::NDArray*> > const&)+0x234) [0x7f7beedb54]
[bt] (5) /home/laurawly/workspace/install/lib/python3.6/site-packages/mxnet/libmxnet.so(MXImperativeInvokeImpl(void*, int, void**, int*, void***, int, char const**, char const**)+0x4e0) [0x7f7c472b90]
[bt] (6) /home/laurawly/workspace/install/lib/python3.6/site-packages/mxnet/libmxnet.so(MXImperativeInvokeEx+0x1dc) [0x7f7c474414]
[bt] (7) /usr/lib/aarch64-linux-gnu/libffi.so.6(ffi_call_SYSV+0x64) [0x7f81f56d28]
[bt] (8) /usr/lib/aarch64-linux-gnu/libffi.so.6(ffi_call+0xc8) [0x7f81f57698]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment