Searched refs:module (Results 51 - 73 of 73) sorted by relevance

123

/gem5/util/ccdrv/
H A Ddevtime.c38 #include <linux/module.h>
/gem5/ext/pybind11/include/pybind11/
H A Deval.h55 auto expr = (s[0] == '\n') ? str(module::import("textwrap").attr("dedent")(s))
H A Dpybind11.h707 "when compiling your pybind11 module.";
789 class module : public object { class in inherits:object
791 PYBIND11_OBJECT_DEFAULT(module, object, PyModule_Check)
793 /// Create a new top-level Python module with the given name and docstring
794 explicit module(const char *name, const char *doc = nullptr) { function in class:cpp_function::module
808 pybind11_fail("Internal error in module::module()");
813 Create Python binding for a new function within the module scope. ``Func``
818 module &def(const char *name_, Func &&f, const Extra& ... extra) {
833 py::module
[all...]
H A Deigen.h552 object sparse_module = module::import("scipy.sparse");
583 object matrix_type = module::import("scipy.sparse").attr(
H A Dnumpy.h220 module m = module::import("numpy.core.multiarray");
499 static PyObject *obj = module::import("numpy.core._internal")
/gem5/ext/pybind11/tests/
H A Dtest_local_bindings.cpp3 binding local to the module in which it is defined.
31 // The main pybind11 test module is loaded first, so this registration will succeed (the second
44 auto main = py::module::import("pybind11_tests");
H A Dtest_numpy_vectorize.cpp20 try { py::module::import("numpy"); }
H A Dtest_stl_binders.cpp98 try { py::module::import("numpy"); }
H A Dtest_methods_and_attributes.cpp267 auto emna = py::reinterpret_borrow<py::class_<ExampleMandA>>(py::module::import("pybind11_tests.methods_and_attributes").attr("ExampleMandA"));
272 auto emna = py::reinterpret_borrow<py::class_<ExampleMandA>>(py::module::import("pybind11_tests.methods_and_attributes").attr("ExampleMandA"));
394 auto m = py::module::import("pybind11_tests");
398 auto m = py::module::import("pybind11_tests");
H A Dtest_exceptions.cpp146 py::module::import("nonexistent");
H A Dtest_numpy_array.cpp25 py::module np = py::module::import("numpy");
136 try { py::module::import("numpy"); }
H A Dtest_virtual_functions.cpp186 void initialize_inherited_virtuals(py::module &m);
443 void initialize_inherited_virtuals(py::module &m) {
H A Dtest_class.cpp145 auto mod = py::module::import("__main__");
150 auto mod = py::module::import("__main__");
252 // definition in a different compilation unit within the same module:
H A Dtest_eigen.cpp322 py::module::import("numpy").attr("ones")(10);
326 py::module::import("numpy").attr("ones")(10);
H A Dconstructor_stats.h123 py::module::import("gc").attr("collect")();
H A Dtest_pytypes.cpp275 auto py_stderr = py::module::import("sys").attr("stderr");
H A Dtest_factory_constructors.cpp144 py::module m_tag = m.def_submodule("tag");
H A Dtest_numpy_dtypes.cpp258 try { py::module::import("numpy"); }
/gem5/ext/ply/ply/
H A Dlex.py76 # logging module.
479 # module, it may be necessary to break the master regex into separate expressions.
861 # lex(module)
863 # Build all of the regular expression rules from definitions in the supplied module
865 def lex(module=None,object=None,debug=0,optimize=0,lextab="lextab",reflags=0,nowarn=0,outputdir="", debuglog=None, errorlog=None):
880 # Get the module dictionary used for the lexer
881 if object: module = object
883 if module:
884 _items = [(k,getattr(module,k)) for k in dir(module)]
[all...]
H A Dyacc.py56 # To make this module run fast, a *LOT* of work has been put into
75 tab_module = 'parsetab' # Default name of the table module
112 # logging module. PLY will use this by default to create things
295 # If no lexer was given, we will try to use the lex module
606 # If no lexer was given, we will try to use the lex module
878 # If no lexer was given, we will try to use the lex module
1821 def read_table(self,module):
1822 if isinstance(module,types.ModuleType):
1823 parsetab = module
1826 exec("import %s as parsetab" % module)
[all...]
/gem5/ext/ply/test/
H A Dtestlex.py33 def run_import(module):
34 code = "import "+module
36 del sys.modules[module]
/gem5/src/unittest/
H A Dstattest.cc676 stattest_init_pybind(py::module &m_internal)
678 py::module m = m_internal.def_submodule("stattest");
/gem5/ext/pybind11/include/pybind11/detail/
H A Dcommon.h224 "Python version mismatch: module was compiled for Python %s, " \
244 imports a plugin library. Please create a `module` in the function body and return
250 pybind11::module m("example", "pybind11 example plugin");
268 imports an extension module. The module name is given as the fist argument and it
270 `py::module` which can be used to initialize the module.
275 m.doc() = "pybind11 example module";
284 static void PYBIND11_CONCAT(pybind11_init_, name)(pybind11::module &); \
287 auto m = pybind11::module(PYBIND11_TOSTRIN
[all...]

Completed in 61 milliseconds

123