Home
last modified time | relevance | path

Searched refs:npy_api (Results 1 – 3 of 3) sorted by relevance

/external/python/pybind11/include/pybind11/
Dnumpy.h130 struct npy_api { struct
172 static npy_api& get() { in get() argument
173 static npy_api api = lookup(); in get()
227 static npy_api lookup() { in lookup() argument
235 npy_api api; in lookup()
464 PYBIND11_OBJECT_DEFAULT(dtype, object, detail::npy_api::get().PyArrayDescr_Check_);
490 if (!detail::npy_api::get().PyArray_DescrConverter_(args.ptr(), &ptr) || !ptr)
558 PYBIND11_OBJECT_CVT(array, buffer, detail::npy_api::get().PyArray_Check_, raw_array)
561 c_style = detail::npy_api::NPY_ARRAY_C_CONTIGUOUS_,
562 f_style = detail::npy_api::NPY_ARRAY_F_CONTIGUOUS_,
[all …]
Deigen.h223 array_proxy(a.ptr())->flags &= ~detail::npy_api::NPY_ARRAY_WRITEABLE_;
281 int result = detail::npy_api::get().PyArray_CopyInto_(ref.ptr(), buf.ptr());
/external/tensorflow/tensorflow/compiler/xla/python/
Dtypes.cc270 h, py::array::c_style | py::detail::npy_api::NPY_ARRAY_ALIGNED_); in CastToArray()