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

Function _load_backend

python/dgl/distributed/optim/__init__.py:10–14  ·  view source on GitHub ↗
(mod_name)

Source from the content-addressed store, hash-verified

8
9
10def _load_backend(mod_name):
11 mod = importlib.import_module(".%s" % mod_name, __name__)
12 thismod = sys.modules[__name__]
13 for api, obj in mod.__dict__.items():
14 setattr(thismod, api, obj)
15
16
17_load_backend(backend_name)

Callers 1

__init__.pyFile · 0.70

Calls 2

import_moduleMethod · 0.80
itemsMethod · 0.45

Tested by

no test coverage detected