Searched refs:array_safe (Results 1 – 3 of 3) sorted by relevance
381 std::unique_ptr<PyObject, PyDecrefDeleter> array_safe( in SetTensor() local383 if (!array_safe) { in SetTensor()389 PyArrayObject* array = reinterpret_cast<PyArrayObject*>(array_safe.get()); in SetTensor()470 std::unique_ptr<PyObject, PyDecrefDeleter> array_safe( in SetTensor() local472 if (!array_safe) { in SetTensor()478 PyArrayObject* array = reinterpret_cast<PyArrayObject*>(array_safe.get()); in SetTensor()
484 Safe_PyObjectPtr array_safe(make_safe( in NdarrayToTensor() local486 if (!array_safe) return errors::InvalidArgument("Not a ndarray."); in NdarrayToTensor()487 PyArrayObject* array = reinterpret_cast<PyArrayObject*>(array_safe.get()); in NdarrayToTensor()506 array_safe.release(); in NdarrayToTensor()519 array_safe.release(); in NdarrayToTensor()
315 std::unique_ptr<PyObject, PyDecrefDeleter> array_safe( in ResizeInputTensorImpl() local317 if (!array_safe) { in ResizeInputTensorImpl()323 PyArrayObject* array = reinterpret_cast<PyArrayObject*>(array_safe.get()); in ResizeInputTensorImpl()494 std::unique_ptr<PyObject, PyDecrefDeleter> array_safe( in SetTensor() local496 if (!array_safe) { in SetTensor()502 PyArrayObject* array = reinterpret_cast<PyArrayObject*>(array_safe.get()); in SetTensor()