Searched refs:array_safe (Results 1 – 3 of 3) sorted by relevance
150 std::unique_ptr<PyObject, PyDecrefDeleter> array_safe( in ResizeInputTensor() local152 if (!array_safe) { in ResizeInputTensor()158 PyArrayObject* array = reinterpret_cast<PyArrayObject*>(array_safe.get()); in ResizeInputTensor()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()
116 std::unique_ptr<PyObject, PyDecrefDeleter> array_safe( in SetTensor() local118 if (!array_safe) { in SetTensor()124 PyArrayObject* array = reinterpret_cast<PyArrayObject*>(array_safe.get()); in SetTensor()
420 Safe_PyObjectPtr array_safe(make_safe( in PyArrayToTF_Tensor() local422 if (!array_safe) return errors::InvalidArgument("Not a ndarray."); in PyArrayToTF_Tensor()423 PyArrayObject* array = reinterpret_cast<PyArrayObject*>(array_safe.get()); in PyArrayToTF_Tensor()442 array_safe.release(); in PyArrayToTF_Tensor()448 array_safe.release(); in PyArrayToTF_Tensor()