Searched refs:reinterpret_steal (Results 1 – 17 of 17) sorted by relevance
/external/python/pybind11/include/pybind11/ |
D | eval.h | 67 return reinterpret_steal<object>(result); 124 auto fobj = reinterpret_steal<object>(PyFile_FromString( 148 return reinterpret_steal<object>(result);
|
D | pytypes.h | 283 template <typename T> friend T reinterpret_steal(handle); 314 template <typename T> T reinterpret_steal(handle h) { return {h, object::stolen_t{}}; } in reinterpret_steal() function 353 discard_as_unraisable(reinterpret_steal<object>(PYBIND11_FROM_STRING(err_context))); in PYBIND11_NAMESPACE_END() 422 return reinterpret_steal<object>(result); in getattr() 428 return reinterpret_steal<object>(result); in getattr() 433 return reinterpret_steal<object>(result); in getattr() 442 return reinterpret_steal<object>(result); in getattr() 558 return reinterpret_steal<object>(result); in get() 572 return reinterpret_steal<object>(result); in get() 894 value = reinterpret_steal<object>(PyIter_Next(m_ptr)); [all …]
|
D | stl.h | 91 … auto value_ = reinterpret_steal<object>(key_conv::cast(forward_like<T>(value), policy, parent)); in cast() 131 …auto key = reinterpret_steal<object>(key_conv::cast(forward_like<T>(kv.first), policy_key, parent)… in cast() 132 …auto value = reinterpret_steal<object>(value_conv::cast(forward_like<T>(kv.second), policy_value, … in cast() 175 … auto value_ = reinterpret_steal<object>(value_conv::cast(forward_like<T>(value), policy, parent)); in cast() 232 … auto value_ = reinterpret_steal<object>(value_conv::cast(forward_like<T>(value), policy, parent));
|
D | cast.h | 519 auto inst = reinterpret_steal<object>(make_new_instance(tinfo->type)); 718 auto temp = reinterpret_steal<object>(converter(src.ptr(), typeinfo->type)); in load_impl() 1050 index = reinterpret_steal<object>(PyNumber_Index(src.ptr())); 1078 auto tmp = reinterpret_steal<object>(std::is_floating_point<T>::value 1262 temp = reinterpret_steal<object>(PyUnicode_FromObject(load_src.ptr())); 1268 auto utfNbytes = reinterpret_steal<object>(PyUnicode_AsEncodedString( 1491 …reinterpret_steal<object>(make_caster<Ts>::cast(std::get<Is>(std::forward<T>(src)), policy, parent… 1765 …return reinterpret_steal<object>(detail::make_caster<T>::cast(std::forward<T>(value), policy, pare… 1846 { reinterpret_steal<object>(detail::make_caster<Args>::cast( 1891 value(reinterpret_steal<object>( [all …]
|
D | numpy.h | 492 return reinterpret_steal<dtype>(ptr); 594 auto tmp = reinterpret_steal<object>(api.PyArray_NewFromDescr_( 606 … tmp = reinterpret_steal<object>(api.PyArray_NewCopy_(tmp.ptr(), -1 /* any order */)); 762 return reinterpret_steal<array>(api.PyArray_Squeeze_(m_ptr)); 775 auto new_array = reinterpret_steal<object>( 785 auto result = reinterpret_steal<array>(raw_array(h.ptr(), ExtraFlags)); 929 auto result = reinterpret_steal<array_t>(raw_array_t(h.ptr())); 1054 return reinterpret_steal<pybind11::dtype>(ptr); 1188 if (auto descr = reinterpret_steal<object>(api.PyArray_DescrFromScalar_(obj))) {
|
D | eigen.h | 277 auto ref = reinterpret_steal<array>(eigen_ref_array<props>(value));
|
D | pybind11.h | 690 kwargs = reinterpret_steal<dict>(PyDict_Copy(kwargs.ptr())); in PYBIND11_NAMESPACE_BEGIN() 995 return reinterpret_steal<module_>(obj); in import() 1003 *this = reinterpret_steal<module_>(obj); in reload()
|
/external/python/pybind11/include/pybind11/detail/ |
D | class.h | 62 auto name_obj = reinterpret_steal<object>(PYBIND11_FROM_STRING(name)); in make_static_property_type() 239 auto name_obj = reinterpret_steal<object>(PYBIND11_FROM_STRING(name)); in make_default_metaclass() 445 auto name_obj = reinterpret_steal<object>(PYBIND11_FROM_STRING(name)); in make_object_base_type() 598 auto name = reinterpret_steal<object>(PYBIND11_FROM_STRING(rec.name)); in make_new_python_type() 603 qualname = reinterpret_steal<object>( in make_new_python_type()
|
/external/tensorflow/tensorflow/python/lib/core/ |
D | pybind11_lib.h | 45 return py::reinterpret_steal<py::object>(ptr); in Pyo()
|
/external/tensorflow/tensorflow/compiler/xla/python/ |
D | python_ref_manager.cc | 64 python_garbage_.push_back(py::reinterpret_steal<py::object>( in AddGarbage()
|
D | pytree.cc | 138 py::list keys = py::reinterpret_steal<py::list>(PyDict_Keys(dict.ptr())); in FlattenInto() 362 py::reinterpret_steal<py::list>(PyDict_Keys(dict.ptr())); in FlattenUpTo()
|
D | jax_jit.cc | 225 py::reinterpret_steal<py::object>(key)); in ParseArguments()
|
/external/python/pybind11/docs/ |
D | reference.rst | 44 .. doxygenfunction:: reinterpret_steal
|
D | upgrade.rst | 507 | ``py::object(ptr, false)`` | ``py::reinterpret_steal<py::object>(ptr)`` |
|
/external/llvm-project/mlir/lib/Bindings/Python/ |
D | Pass.cpp | 36 return py::reinterpret_steal<py::object>( in getCapsule()
|
D | IRModules.cpp | 424 return py::reinterpret_steal<py::object>(mlirPythonContextToCapsule(get())); in getCapsule() 646 return py::reinterpret_steal<py::object>(mlirPythonLocationToCapsule(*this)); in getCapsule() 728 return py::reinterpret_steal<py::object>(mlirPythonModuleToCapsule(get())); in getCapsule() 1120 return py::reinterpret_steal<py::object>(mlirPythonAttributeToCapsule(*this)); in getCapsule() 1149 return py::reinterpret_steal<py::object>(mlirPythonTypeToCapsule(*this)); in getCapsule()
|
/external/python/pybind11/tests/ |
D | test_class.cpp | 242 … return py::reinterpret_steal<py::object>(PyCFunction_NewEx(def, def_capsule.ptr(), m.ptr())); in TEST_SUBMODULE()
|