/external/google-benchmark/bindings/python/google_benchmark/ |
D | benchmark.cc | 78 .def("unit", &Benchmark::Unit, py::return_value_policy::reference) in PYBIND11_MODULE() 79 .def("arg", &Benchmark::Arg, py::return_value_policy::reference) in PYBIND11_MODULE() 80 .def("args", &Benchmark::Args, py::return_value_policy::reference) in PYBIND11_MODULE() 81 .def("range", &Benchmark::Range, py::return_value_policy::reference, in PYBIND11_MODULE() 84 py::return_value_policy::reference, py::arg("start"), in PYBIND11_MODULE() 86 .def("ranges", &Benchmark::Ranges, py::return_value_policy::reference) in PYBIND11_MODULE() 88 py::return_value_policy::reference) in PYBIND11_MODULE() 89 .def("arg_name", &Benchmark::ArgName, py::return_value_policy::reference) in PYBIND11_MODULE() 91 py::return_value_policy::reference) in PYBIND11_MODULE() 93 py::return_value_policy::reference, py::arg("lo1"), py::arg("hi1"), in PYBIND11_MODULE() [all …]
|
/external/python/pybind11/include/pybind11/ |
D | eigen.h | 295 static handle cast_impl(CType *src, return_value_policy policy, handle parent) { 297 case return_value_policy::take_ownership: 298 case return_value_policy::automatic: 300 case return_value_policy::move: 302 case return_value_policy::copy: 304 case return_value_policy::reference: 305 case return_value_policy::automatic_reference: 307 case return_value_policy::reference_internal: 317 static handle cast(Type &&src, return_value_policy /* policy */, handle parent) { 318 return cast_impl(&src, return_value_policy::move, parent); [all …]
|
D | cast.h | 499 … PYBIND11_NOINLINE static handle cast(const void *_src, return_value_policy policy, handle parent, 525 case return_value_policy::automatic: 526 case return_value_policy::take_ownership: 531 case return_value_policy::automatic_reference: 532 case return_value_policy::reference: 537 case return_value_policy::copy: 554 case return_value_policy::move: 574 case return_value_policy::reference_internal: 870 static handle cast(const itype &src, return_value_policy policy, handle parent) { 871 …if (policy == return_value_policy::automatic || policy == return_value_policy::automatic_reference) [all …]
|
D | stl.h | 86 static handle cast(T &&src, return_value_policy policy, handle parent) { in cast() 122 static handle cast(T &&src, return_value_policy policy, handle parent) { in cast() 124 return_value_policy policy_key = policy; in cast() 125 return_value_policy policy_value = policy; in cast() 169 static handle cast(T &&src, return_value_policy policy, handle parent) { in cast() 228 static handle cast(T &&src, return_value_policy policy, handle parent) { 266 static handle cast(T_ &&src, return_value_policy policy, handle parent) { 310 return_value_policy policy; 363 static handle cast(Variant &&src, return_value_policy policy, handle parent) {
|
D | attr.h | 169 return_value_policy policy = return_value_policy::automatic; 351 template <> struct process_attribute<return_value_policy> : process_attribute_default<return_value_… 352 static void init(const return_value_policy &p, function_record *r) { r->policy = p; }
|
D | pybind11.h | 186 … return_value_policy policy = return_value_policy_override<Return>::policy(call.func.policy); in PYBIND11_NAMESPACE_BEGIN() 1400 def_property(name, fget, fset, return_value_policy::reference_internal, extra...); 1408 def_property_readonly(name, fget, return_value_policy::reference_internal, extra...); 1416 def_property_static(name, fget, fset, return_value_policy::reference, extra...); 1423 def_property_readonly_static(name, fget, return_value_policy::reference, extra...); 1431 return_value_policy::reference_internal, extra...); 1443 …return def_property_readonly_static(name, cpp_function(fget), return_value_policy::reference, extr… 1460 return_value_policy::reference_internal, extra...); 1472 …return def_property_static(name, cpp_function(fget), fset, return_value_policy::reference, extra..… 1809 m_base.value(name, pybind11::cast(value, return_value_policy::copy), doc); [all …]
|
/external/tensorflow/tensorflow/python/ |
D | tfe_wrapper.cc | 712 py::return_value_policy::reference); in PYBIND11_MODULE() 726 py::return_value_policy::reference); in PYBIND11_MODULE() 736 py::return_value_policy::reference); in PYBIND11_MODULE() 878 py::return_value_policy::reference); in PYBIND11_MODULE() 890 py::return_value_policy::reference); in PYBIND11_MODULE() 902 py::return_value_policy::reference); in PYBIND11_MODULE() 912 py::return_value_policy::reference); in PYBIND11_MODULE() 945 py::return_value_policy::reference); in PYBIND11_MODULE() 967 py::return_value_policy::reference); in PYBIND11_MODULE() 1170 py::return_value_policy::reference); in PYBIND11_MODULE() [all …]
|
/external/python/pybind11/tests/ |
D | test_copy_move.cpp | 76 …static handle cast(const MoveOnlyInt &m, return_value_policy r, handle p) { return pybind11::cast(… in cast() 82 …static handle cast(const MoveOrCopyInt &m, return_value_policy r, handle p) { return pybind11::cas… in cast() 91 …static handle cast(const CopyOnlyInt &m, return_value_policy r, handle p) { return pybind11::cast(… in cast() 92 static handle cast(const CopyOnlyInt *src, return_value_policy policy, handle parent) { in cast() 107 py::return_value_policy::copy); in PYBIND11_NAMESPACE_END() 111 py::return_value_policy::move); in PYBIND11_NAMESPACE_END() 154 d["MoveOrCopyInt"] = py::cast(mc, py::return_value_policy::reference); in PYBIND11_NAMESPACE_END() 155 d["MoveOnlyInt"] = py::cast(mo, py::return_value_policy::reference); in PYBIND11_NAMESPACE_END() 156 d["CopyOnlyInt"] = py::cast(co, py::return_value_policy::reference); in PYBIND11_NAMESPACE_END() 198 }, py::return_value_policy::reference); in PYBIND11_NAMESPACE_END() [all …]
|
D | test_custom_type_casters.cpp | 30 static handle cast(const ArgInspector1 &src, return_value_policy, handle) { in cast() 45 static handle cast(const ArgInspector2 &src, return_value_policy, handle) { in cast() 57 static handle cast(const ArgAlwaysConverts &, return_value_policy, handle) { in cast() 79 static handle cast(const DestructionTester &, return_value_policy, handle) { in cast() 124 py::return_value_policy::take_ownership); // Takes ownership: destroy when finished in TEST_SUBMODULE() 126 … py::return_value_policy::take_ownership); // Likewise (const doesn't inhibit destruction) in TEST_SUBMODULE() 127 …ion_tester_cstats", &ConstructorStats::get<DestructionTester>, py::return_value_policy::reference); in TEST_SUBMODULE()
|
D | pybind11_tests.h | 68 …static handle cast(RValueCaster &&, return_value_policy, handle) { return py::str("rvalue").releas… in PYBIND11_NAMESPACE_BEGIN() 69 …static handle cast(const RValueCaster &, return_value_policy, handle) { return py::str("lvalue").r… in PYBIND11_NAMESPACE_BEGIN()
|
D | test_modules.cpp | 49 … .def("get_a1", &B::get_a1, "Return the internal A 1", py::return_value_policy::reference_internal) in TEST_SUBMODULE() 50 … .def("get_a2", &B::get_a2, "Return the internal A 2", py::return_value_policy::reference_internal) in TEST_SUBMODULE()
|
D | test_smart_ptr.cpp | 170 py::object o2 = py::cast(o, py::return_value_policy::reference); in TEST_SUBMODULE() 275 py::return_value_policy::copy) in TEST_SUBMODULE() 278 py::return_value_policy::copy) in TEST_SUBMODULE() 301 py::return_value_policy::copy) in TEST_SUBMODULE() 304 py::return_value_policy::copy) in TEST_SUBMODULE()
|
D | test_eigen.cpp | 139 }, py::return_value_policy::reference); in TEST_SUBMODULE() 145 }, py::return_value_policy::reference); in TEST_SUBMODULE() 152 }, py::return_value_policy::reference); in TEST_SUBMODULE() 159 }, py::return_value_policy::reference); in TEST_SUBMODULE() 193 using rvp = py::return_value_policy; 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()
|
/external/tensorflow/tensorflow/python/lib/core/ |
D | pybind11_status.h | 154 static handle cast(tensorflow::Status status, return_value_policy, handle) { 172 return_value_policy policy, handle parent) { 178 return_value_policy policy, handle parent) { 183 return_value_policy policy, handle parent) { 189 static handle cast_impl(CType&& src, return_value_policy policy, 198 return_value_policy::move, parent);
|
/external/tensorflow/tensorflow/compiler/mlir/python/mlir_wrapper/ |
D | basic_classes.cc | 35 .def("back", &mlir::Region::back, py::return_value_policy::reference) in init_basic_classes() 36 .def("front", &mlir::Region::front, py::return_value_policy::reference) in init_basic_classes() 40 .def("front", &mlir::Region::front, py::return_value_policy::reference); in init_basic_classes() 44 py::return_value_policy::reference) in init_basic_classes()
|
D | builders.cc | 47 py::return_value_policy::reference) in init_builders() 49 py::return_value_policy::reference); in init_builders()
|
D | ops.cc | 26 py::return_value_policy::reference) in init_ops() 44 py::return_value_policy::reference); in init_ops() 70 py::return_value_policy::reference) in init_ops()
|
/external/tensorflow/tensorflow/python/client/ |
D | tf_session_wrapper.cc | 185 py::return_value_policy::reference, in PYBIND11_MODULE() 228 py::return_value_policy::reference); in PYBIND11_MODULE() 342 py::return_value_policy::reference); in PYBIND11_MODULE() 355 py::return_value_policy::reference); in PYBIND11_MODULE() 565 m.def("TF_NewGraph", TF_NewGraph, py::return_value_policy::reference, in PYBIND11_MODULE() 592 py::return_value_policy::reference); in PYBIND11_MODULE() 605 py::return_value_policy::reference); in PYBIND11_MODULE() 676 return py::cast(*trace, py::return_value_policy::reference); in PYBIND11_MODULE() 683 m.def("TF_NewBuffer", TF_NewBuffer, py::return_value_policy::reference); in PYBIND11_MODULE() 697 py::return_value_policy::reference); in PYBIND11_MODULE() [all …]
|
/external/tensorflow/tensorflow/core/function/ |
D | runtime_client_pybind.cc | 33 pybind11::return_value_policy::reference); in PYBIND11_MODULE() 37 pybind11::return_value_policy::reference); in PYBIND11_MODULE() 48 pybind11::return_value_policy::reference) in PYBIND11_MODULE()
|
/external/tensorflow/tensorflow/python/data/experimental/service/ |
D | server_lib_wrapper.cc | 84 py::return_value_policy::reference); in PYBIND11_MODULE() 101 py::return_value_policy::reference); in PYBIND11_MODULE() 128 py::return_value_policy::reference); in PYBIND11_MODULE() 152 py::return_value_policy::reference); in PYBIND11_MODULE()
|
/external/tensorflow/tensorflow/compiler/xla/python/ |
D | status_casters.h | 52 static handle cast(xla::Status src, return_value_policy /* policy */, 69 static handle cast(xla::StatusOr<T> src, return_value_policy policy,
|
D | transfer_guard_lib.cc | 172 py::return_value_policy::reference); in BuildTransferGuardSubmodule() 175 py::return_value_policy::reference); in BuildTransferGuardSubmodule()
|
/external/python/pybind11/docs/advanced/ |
D | functions.rst | 22 :enum:`return_value_policy::automatic`. 38 In this case, the default return value policy (:enum:`return_value_policy::automatic`) 47 In the above example, the policy :enum:`return_value_policy::reference` should have 53 m.def("get_data", &get_data, return_value_policy::reference); 66 | :enum:`return_value_policy::take_ownership` | Reference an existing object (i.e. do not crea… 71 | :enum:`return_value_policy::copy` | Create a new copy of the returned object, whic… 75 | :enum:`return_value_policy::move` | Use ``std::move`` to move the return value con… 79 | :enum:`return_value_policy::reference` | Reference an existing object, but do not take … 84 | :enum:`return_value_policy::reference_internal` | Indicates that the lifetime of the return valu… 87 | | :enum:`return_value_policy::reference` but add… [all …]
|
/external/tensorflow/tensorflow/python/util/ |
D | py_checkpoint_reader_wrapper.cc | 60 return_value_policy unused_policy, handle unused_handle) { in cast() 85 return_value_policy unused_policy, handle unused_handle) { in cast()
|