MCPcopy Create free account
hub / github.com/MegEngine/MegEngine / rel_import

Function rel_import

imperative/python/src/helper.cpp:24–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22}
23
24py::module rel_import(py::str name, py::module m, int level) {
25 py::object import = py::module::import("builtins").attr("__import__");
26 return import(name, m.attr("__dict__"), py::arg("level") = level);
27}
28
29/*
30 * demangle typeid, see

Callers 1

init_graph_rtFunction · 0.85

Calls 1

attrMethod · 0.80

Tested by

no test coverage detected