Home
last modified time | relevance | path

Searched refs:is_numpy_scalar (Results 1 – 5 of 5) sorted by relevance

/aosp_15_r20/external/pytorch/torch/csrc/utils/
H A Dtensor_numpy.cpp26 bool is_numpy_scalar(PyObject* obj) { in is_numpy_scalar() function
373 bool is_numpy_scalar(PyObject* obj) { in is_numpy_scalar() function
H A Dtensor_numpy.h17 bool is_numpy_scalar(PyObject* obj);
H A Dtensor_new.cpp1704 bool is_numpy_scalar = PyArray_CheckScalar(obj); in asarray() local
1706 if (is_numpy_array || is_numpy_scalar) { in asarray()
1713 if (is_numpy_scalar && !is_numpy_array) { in asarray()
1727 if (is_numpy_scalar) { in asarray()
H A Dpython_numbers.h142 if (torch::utils::is_numpy_scalar(obj)) { in THPUtils_checkDouble()
H A Dpython_arg_parser.h86 if (torch::utils::is_numpy_scalar(obj)) { in THPUtils_checkScalar()