Searched refs:array_safe (Results 1 – 3 of 3) sorted by relevance
477 Safe_PyObjectPtr array_safe(make_safe( in NdarrayToTensor() local479 if (!array_safe) return errors::InvalidArgument("Not a ndarray."); in NdarrayToTensor()480 PyArrayObject* array = reinterpret_cast<PyArrayObject*>(array_safe.get()); in NdarrayToTensor()499 array_safe.release(); in NdarrayToTensor()512 array_safe.release(); in NdarrayToTensor()
250 std::unique_ptr<PyObject, PyDecrefDeleter> array_safe( in ResizeInputTensorImpl() local252 if (!array_safe) { in ResizeInputTensorImpl()258 PyArrayObject* array = reinterpret_cast<PyArrayObject*>(array_safe.get()); in ResizeInputTensorImpl()421 std::unique_ptr<PyObject, PyDecrefDeleter> array_safe( in SetTensor() local423 if (!array_safe) { in SetTensor()429 PyArrayObject* array = reinterpret_cast<PyArrayObject*>(array_safe.get()); in SetTensor()
239 std::unique_ptr<PyObject, PyDecrefDeleter> array_safe( in SetTensor() local241 if (!array_safe) { in SetTensor()247 PyArrayObject* array = reinterpret_cast<PyArrayObject*>(array_safe.get()); in SetTensor()