-
Couldn't load subscription status.
- Fork 9
Description
from mxnet import init, np, npx
from mxnet.gluon import nn
from d2l import mxnet as d2l
npx.set_np()
show errors:
OSError Traceback (most recent call last)
Cell In[3], line 1
----> 1 from mxnet import init, np, npx
2 from mxnet.gluon import nn
3 from d2l import mxnet as d2l
File ~/anaconda3/envs/python3/lib/python3.10/site-packages/mxnet/init.py:23
1 #!/usr/bin/env python
2
3 # Licensed to the Apache Software Foundation (ASF) under one
(...)
19
20 # coding: utf-8
21 """MXNet: a concise, fast and flexible framework for deep learning."""
---> 23 from .context import Context, current_context, cpu, gpu, cpu_pinned
24 from . import engine, error
25 from .base import MXNetError
File ~/anaconda3/envs/python3/lib/python3.10/site-packages/mxnet/context.py:23
21 import warnings
22 import ctypes
---> 23 from .base import classproperty, with_metaclass, _MXClassPropertyMetaClass
24 from .base import _LIB
25 from .base import check_call
File ~/anaconda3/envs/python3/lib/python3.10/site-packages/mxnet/base.py:356
354 version = libinfo.version
355 # library instance of mxnet
--> 356 _LIB = _load_lib()
358 # type definitions
359 mx_int = ctypes.c_int
File ~/anaconda3/envs/python3/lib/python3.10/site-packages/mxnet/base.py:347, in _load_lib()
345 lib = ctypes.CDLL(lib_path[0], winmode=0x00000008)
346 else:
--> 347 lib = ctypes.CDLL(lib_path[0], ctypes.RTLD_LOCAL)
348 # DMatrix functions
349 lib.MXGetLastError.restype = ctypes.c_char_p
File ~/anaconda3/envs/python3/lib/python3.10/ctypes/init.py:374, in CDLL.init(self, name, mode, handle, use_errno, use_last_error, winmode)
371 self._FuncPtr = _FuncPtr
373 if handle is None:
--> 374 self._handle = _dlopen(self._name, mode)
375 else:
376 self._handle = handle
OSError: libcudart.so.11.0: cannot open shared object file: No such file or directory