/external/python/pybind11/tests/ |
D | test_smart_ptr.cpp | 204 .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()
|
D | test_multiple_inheritance.cpp | 175 .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()
|
D | pybind11_tests.cpp | 54 ….def_static("get", (ConstructorStats &(*)(py::object)) &ConstructorStats::get, py::return_value_po… in bind_ConstructorStats() 58 .def_static("detail_reg_inst", []() { in bind_ConstructorStats()
|
D | test_class.cpp | 50 .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()
|
D | test_methods_and_attributes.cpp | 209 .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()
|
D | test_factory_constructors.cpp | 230 ….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()
|
D | test_enum.cpp | 63 exenum_class.def_static("test_function", &ClassWithUnscopedEnum::test_function); in TEST_SUBMODULE()
|
D | test_copy_move.cpp | 106 .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()
|
D | test_custom_type_casters.cpp | 107 .def_static("h", &ArgInspector::h, py::arg{}.noconvert(), py::arg() = ArgAlwaysConverts()) in TEST_SUBMODULE()
|
D | test_eigen.cpp | 196 .def_static("create", &ReturnTester::create) in TEST_SUBMODULE() 197 .def_static("create_const", &ReturnTester::createConst) in TEST_SUBMODULE()
|
D | test_numpy_dtypes.cpp | 272 .def_static("fromtuple", [](const py::tuple tup) { in TEST_SUBMODULE()
|
/external/tensorflow/tensorflow/compiler/xla/python/ |
D | xla_compiler.cc | 240 .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 …]
|
D | traceback.cc | 152 traceback.def_static( in BuildTracebackSubmodule() 184 traceback.def_static( in BuildTracebackSubmodule()
|
D | python_utils.h | 52 pybind11::object def_static(Constructor&& constructor) { in def_static() function
|
D | profiler.cc | 120 .def_static("is_enabled", &TraceMeWrapper::IsEnabled); in BuildProfilerSubmodule()
|
D | sharded_device_array.cc | 222 type.attr("make") = def_static([](py::object aval, ShardingSpec sharding_spec, in RegisterTypes()
|
D | jax_jit.cc | 1255 cache.def_static("clear_all", []() { in BuildJaxjitSubmodule()
|
/external/tensorflow/tensorflow/python/util/ |
D | py_checkpoint_reader_wrapper.cc | 148 .def_static("CheckpointReader_GetTensor", in PYBIND11_MODULE()
|
/external/tensorflow/tensorflow/compiler/xla/python/tpu_driver/client/ |
D | tpu_client_extension.cc | 37 .def_static("Get", &PyTpuClient::Get, py::arg("worker")) in PYBIND11_MODULE()
|
/external/python/pybind11/docs/ |
D | classes.rst | 59 :func:`class_::def_static`.
|
/external/python/pybind11/include/pybind11/ |
D | pybind11.h | 1323 def_static(const char *name_, Func &&f, const Extra&... extra) {
|