MCPcopy Create free account
hub / github.com/davisking/dlib / dtype

Method dtype

dlib/external/pybind11/include/pybind11/numpy.h:840–846  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

838 PYBIND11_OBJECT_DEFAULT(dtype, object, detail::npy_api::get().PyArrayDescr_Check_)
839
840 explicit dtype(const buffer_info &info) {
841 dtype descr(_dtype_from_pep3118()(pybind11::str(info.format)));
842 // If info.itemsize == 0, use the value calculated from the format string
843 m_ptr = descr.strip_padding(info.itemsize != 0 ? info.itemsize : descr.itemsize())
844 .release()
845 .ptr();
846 }
847
848 explicit dtype(const pybind11::str &format) : dtype(from_args(format)) {}
849

Callers 6

py_sub_imageFunction · 0.45
is_imageFunction · 0.45
assert_is_imageFunction · 0.45
loadFunction · 0.45
loadMethod · 0.45

Calls 7

strClass · 0.85
moveFunction · 0.85
getFunction · 0.85
strip_paddingMethod · 0.80
int_Class · 0.70
releaseMethod · 0.45
itemsizeMethod · 0.45

Tested by

no test coverage detected