Home
last modified time | relevance | path

Searched refs:def_static (Results 1 – 21 of 21) sorted by relevance

/external/python/pybind11/tests/
Dtest_smart_ptr.cpp204 .def_static("cleanup_all_instances", &MyObject4::cleanupAllInstances); in TEST_SUBMODULE()
235 .def_static("cleanup_all_instances", &MyObject4a::cleanupAllInstances); in TEST_SUBMODULE()
317 .def_static("get", []() { return sft.get(); }); in TEST_SUBMODULE()
325 .def_static("make", []() { return custom_unique_ptr<C>(new C); }) in TEST_SUBMODULE()
326 .def_static("make_as_object", []() { return py::cast(custom_unique_ptr<C>(new C)); }); in TEST_SUBMODULE()
341 .def_static("make", []() { return HolderWithAddressOf(new TypeForHolderWithAddressOf); }) in TEST_SUBMODULE()
359 ….def_static("make", []() { return MoveOnlyHolderWithAddressOf(new TypeForMoveOnlyHolderWithAddress… in TEST_SUBMODULE()
367 .def_static("load_shared_ptr", [](std::shared_ptr<HeldByDefaultHolder>) {}); in TEST_SUBMODULE()
Dtest_multiple_inheritance.cpp175 .def_static("static_func1", &WithStatic1::static_func1) in TEST_SUBMODULE()
180 .def_static("static_func2", &WithStatic2::static_func2) in TEST_SUBMODULE()
186 .def_static("static_func", &VanillaStaticMix1::static_func) in TEST_SUBMODULE()
192 .def_static("static_func", &VanillaStaticMix2::static_func) in TEST_SUBMODULE()
Dpybind11_tests.cpp54 ….def_static("get", (ConstructorStats &(*)(py::object)) &ConstructorStats::get, py::return_value_po… in bind_ConstructorStats()
58 .def_static("detail_reg_inst", []() { in bind_ConstructorStats()
Dtest_class.cpp50 .def_static("new_instance", &NoConstructor::new_instance, "Return an instance"); in TEST_SUBMODULE()
204 .def_static("make", &MyBase::make); in TEST_SUBMODULE()
207 .def_static("make", &MyDerived::make) in TEST_SUBMODULE()
208 .def_static("make2", &MyDerived::make); in TEST_SUBMODULE()
456 .def_static("get_name", []() { return "BaseWithNested::Nested"; }); in TEST_SUBMODULE()
458 .def_static("get_name", []() { return "DerivedWithNested::Nested"; }); in TEST_SUBMODULE()
Dtest_methods_and_attributes.cpp209 .def_static("add_mixed_overloads1", []() { in TEST_SUBMODULE()
212 ….def_static("overload_mixed1", static_cast<py::str ( *)(float )>(&ExampleMandA::ove… in TEST_SUBMODULE()
214 .def_static("add_mixed_overloads2", []() { in TEST_SUBMODULE()
216 …emna.def_static("overload_mixed2", static_cast<py::str ( *)(float )>(&ExampleMandA:… in TEST_SUBMODULE()
Dtest_factory_constructors.cpp230 ….def_static("get_cstats", &ConstructorStats::get<TestFactory6>, py::return_value_policy::reference) in TEST_SUBMODULE()
231 … .def_static("get_alias_cstats", &ConstructorStats::get<PyTF6>, py::return_value_policy::reference) in TEST_SUBMODULE()
265 ….def_static("get_cstats", &ConstructorStats::get<TestFactory7>, py::return_value_policy::reference) in TEST_SUBMODULE()
266 … .def_static("get_alias_cstats", &ConstructorStats::get<PyTF7>, py::return_value_policy::reference) in TEST_SUBMODULE()
Dtest_enum.cpp63 exenum_class.def_static("test_function", &ClassWithUnscopedEnum::test_function); in TEST_SUBMODULE()
Dtest_copy_move.cpp106 .def_static("get_one", &lacking_copy_ctor::get_one, in PYBIND11_NAMESPACE_END()
110 .def_static("get_one", &lacking_move_ctor::get_one, in PYBIND11_NAMESPACE_END()
Dtest_custom_type_casters.cpp107 .def_static("h", &ArgInspector::h, py::arg{}.noconvert(), py::arg() = ArgAlwaysConverts()) in TEST_SUBMODULE()
Dtest_eigen.cpp196 .def_static("create", &ReturnTester::create) in TEST_SUBMODULE()
197 .def_static("create_const", &ReturnTester::createConst) in TEST_SUBMODULE()
Dtest_numpy_dtypes.cpp272 .def_static("fromtuple", [](const py::tuple tup) { in TEST_SUBMODULE()
/external/tensorflow/tensorflow/compiler/xla/python/
Dxla_compiler.cc240 .def_static( in BuildXlaCompilerSubmodule()
246 .def_static( in BuildXlaCompilerSubmodule()
266 .def_static( in BuildXlaCompilerSubmodule()
287 .def_static("token_shape", []() { return ShapeUtil::MakeTokenShape(); }) in BuildXlaCompilerSubmodule()
288 .def_static( in BuildXlaCompilerSubmodule()
294 .def_static( in BuildXlaCompilerSubmodule()
414 .def_static("short_parsable", &HloPrintOptions::ShortParsable) in BuildXlaCompilerSubmodule()
415 .def_static("canonical", &HloPrintOptions::Canonical) in BuildXlaCompilerSubmodule()
416 .def_static("fingerprint", &HloPrintOptions::Fingerprint) in BuildXlaCompilerSubmodule()
557 .def_static("create", in BuildXlaCompilerSubmodule()
[all …]
Dtraceback.cc152 traceback.def_static( in BuildTracebackSubmodule()
184 traceback.def_static( in BuildTracebackSubmodule()
Dpython_utils.h52 pybind11::object def_static(Constructor&& constructor) { in def_static() function
Dprofiler.cc120 .def_static("is_enabled", &TraceMeWrapper::IsEnabled); in BuildProfilerSubmodule()
Dsharded_device_array.cc222 type.attr("make") = def_static([](py::object aval, ShardingSpec sharding_spec, in RegisterTypes()
Djax_jit.cc1255 cache.def_static("clear_all", []() { in BuildJaxjitSubmodule()
/external/tensorflow/tensorflow/python/util/
Dpy_checkpoint_reader_wrapper.cc148 .def_static("CheckpointReader_GetTensor", in PYBIND11_MODULE()
/external/tensorflow/tensorflow/compiler/xla/python/tpu_driver/client/
Dtpu_client_extension.cc37 .def_static("Get", &PyTpuClient::Get, py::arg("worker")) in PYBIND11_MODULE()
/external/python/pybind11/docs/
Dclasses.rst59 :func:`class_::def_static`.
/external/python/pybind11/include/pybind11/
Dpybind11.h1323 def_static(const char *name_, Func &&f, const Extra&... extra) {