MCPcopy
hub / github.com/dmlc/dgl / _load_lib

Function _load_lib

python/dgl/_ffi/base.py:36–44  ·  view source on GitHub ↗

Load libary by searching possible path.

()

Source from the content-addressed store, hash-verified

34
35
36def _load_lib():
37 """Load libary by searching possible path."""
38 lib_path = libinfo.find_lib_path()
39 lib = ctypes.CDLL(lib_path[0])
40 dirname = os.path.dirname(lib_path[0])
41 basename = os.path.basename(lib_path[0])
42 # DMatrix functions
43 lib.DGLGetLastError.restype = ctypes.c_char_p
44 return lib, basename, dirname
45
46
47# version number

Callers 1

base.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected