/external/python/pybind11/tests/ |
D | pybind11_cross_module_tests.cpp | 24 bind_local<ExternalType1>(m, "ExternalType1", py::module_local()); in PYBIND11_MODULE() 25 bind_local<ExternalType2>(m, "ExternalType2", py::module_local()); in PYBIND11_MODULE() 36 bind_local<LocalType, 1>(m, "LocalType", py::module_local()) in PYBIND11_MODULE() 67 py::bind_vector<NonLocalVec2>(m, "NonLocalVec2", py::module_local()); in PYBIND11_MODULE() 70 py::bind_map<NonLocalMap2>(m, "NonLocalMap2", py::module_local(false)); in PYBIND11_MODULE() 77 bind_local<MixedGlobalLocal, 200>(m, "MixedGlobalLocal", py::module_local()); in PYBIND11_MODULE() 80 bind_local<MixedLocalGlobal, 2000>(m, "MixedLocalGlobal", py::module_local(false)); in PYBIND11_MODULE() 100 py::class_<pets::Pet>(m, "Pet", py::module_local()) in PYBIND11_MODULE() 107 py::class_<MixGL>(m, "MixGL", py::module_local()).def(py::init<int>()); in PYBIND11_MODULE() 110 py::class_<MixGL2>(m, "MixGL2", py::module_local()).def(py::init<int>()); in PYBIND11_MODULE()
|
D | test_local_bindings.cpp | 24 bind_local<LocalType, -1>(m, "LocalType", py::module_local()) in TEST_SUBMODULE() 46 bind_local<LocalExternal, 7>(m, "LocalExternal", py::module_local()); in TEST_SUBMODULE() 62 py::bind_vector<LocalVec2>(m, "LocalVec2", py::module_local()); in TEST_SUBMODULE() 63 py::bind_map<NonLocalMap2>(m, "NonLocalMap2", py::module_local(false)); in TEST_SUBMODULE() 69 bind_local<MixedGlobalLocal, 100>(m, "MixedGlobalLocal", py::module_local(false)); in TEST_SUBMODULE() 72 bind_local<MixedLocalGlobal, 1000>(m, "MixedLocalGlobal", py::module_local()); in TEST_SUBMODULE() 90 py::class_<pets::Pet>(m, "Pet", py::module_local()) in TEST_SUBMODULE()
|
D | test_class.cpp | 289 bind_local<LocalExternal, 17>(m, "LocalExternal", py::module_local()); in TEST_SUBMODULE()
|
/external/python/pybind11/include/pybind11/ |
D | attr.h | 72 struct module_local { const bool value; constexpr module_local(bool v = true) : value(v) { } }; in value() argument 224 default_holder(true), module_local(false), is_final(false) { } 275 bool module_local : 1; 482 struct process_attribute<module_local> : process_attribute_default<module_local> { 483 static void init(const module_local &l, type_record *r) { r->module_local = l.value; }
|
D | stl_bind.h | 449 bool local = !vtype_info || vtype_info->module_local; 451 Class_ cl(scope, name.c_str(), pybind11::module_local(local), std::forward<Args>(args)...); 612 bool local = !tinfo || tinfo->module_local; 615 local = !tinfo || tinfo->module_local; 618 Class_ cl(scope, name.c_str(), pybind11::module_local(local), std::forward<Args>(args)...);
|
D | iostream.h | 214 return class_<detail::OstreamRedirect>(m, name.c_str(), module_local()) in PYBIND11_NAMESPACE_END()
|
D | pybind11.h | 1088 if (rec.module_local ? get_local_type_info(*rec.type) : get_global_type_info(*rec.type)) in PYBIND11_NAMESPACE_BEGIN() 1107 tinfo->module_local = rec.module_local; in PYBIND11_NAMESPACE_BEGIN() 1112 if (rec.module_local) in PYBIND11_NAMESPACE_BEGIN() 1127 if (rec.module_local) { in PYBIND11_NAMESPACE_BEGIN() 1299 …auto &instances = record.module_local ? registered_local_types_cpp() : get_internals().registered_… 1899 class_<state>(handle(), "iterator", pybind11::module_local()) 1928 class_<state>(handle(), "iterator", pybind11::module_local())
|
D | cast.h | 729 if (typeinfo->module_local) { in load_impl()
|
/external/python/pybind11/docs/advanced/cast/ |
D | stl.rst | 223 (via the :ref:`module_local` feature). If the container element types are 225 ``py::module_local()`` the container binding will have ``py::module_local()`` 234 ``py::module_local()`` (to make the binding module-local) or 235 ``py::module_local(false)`` (to make the binding global) into the 240 py::bind_vector<std::vector<int>>(m, "VectorInt", py::module_local(false)); 246 See :ref:`module_local` for more details on module-local bindings.
|
/external/tensorflow/tensorflow/python/profiler/internal/ |
D | traceme_wrapper.cc | 26 py::class_<TraceMeWrapper>(m, "TraceMe", py::module_local()) in PYBIND11_MODULE()
|
/external/tensorflow/tensorflow/compiler/xla/python/ |
D | profiler.cc | 51 py::module_local()); in BuildProfilerSubmodule()
|
/external/python/pybind11/docs/ |
D | upgrade.rst | 241 * Some new features, like ``py::module_local`` bindings, can work as intended. 285 ``std::vector<int>``. :ref:`module_local` were added to resolve this (see 291 as ``py::module_local`` if their elements are: builtins (``int``, ``float``, 292 etc.), not bound using ``py::class_``, or bound as ``py::module_local``. For 298 accept foreign ``py::module_local`` types in the direction of Python-to-C++. 305 ``py::module_local(false)``.
|
D | changelog.rst | 774 * Fixed a nullptr dereference when loading a ``py::module_local`` type 848 * Support for ``py::module_local`` types which allow multiple modules to 851 now default to ``py::module_local`` if their elements are builtins or 852 local types. See :ref:`module_local` for details.
|
/external/python/pybind11/docs/advanced/ |
D | classes.rst | 984 localized to the module by passing the ``py::module_local()`` attribute into 990 py::class<pets::Pet>(m, "Pet", py::module_local()) 996 py::class<pets::Pet>(m, "Pet", py::module_local()) 1010 passing such a ``py::module_local`` type into a C++ function, the module-local 1026 >>> import cats, dogs, frogs # No error because of the added py::module_local() 1033 It is possible to use ``py::module_local()`` registrations in one module even 1042 header) apply ``py::module_local`` by default when the bound type might 1057 that demonstrate how ``py::module_local()`` works.
|
/external/python/pybind11/tools/ |
D | pybind11Tools.cmake | 181 # py::module_local). We force it on everything inside the `pybind11`
|
D | pybind11NewTools.cmake | 221 # py::module_local). We force it on everything inside the `pybind11`
|
/external/python/pybind11/include/pybind11/detail/ |
D | internals.h | 149 bool module_local : 1; member
|
D | class.h | 213 if (tinfo->module_local) in pybind11_meta_dealloc()
|
/external/tensorflow/tensorflow/python/util/ |
D | tf_stack.cc | 329 py::class_<StackTraceWrapper>(m, "StackTraceWrapper", py::module_local(true)) in PYBIND11_MODULE()
|