Home
last modified time | relevance | path

Searched refs:array_safe (Results 1 – 3 of 3) sorted by relevance

/external/tensorflow/tensorflow/lite/python/interpreter_wrapper/
Dinterpreter_wrapper.cc150 std::unique_ptr<PyObject, PyDecrefDeleter> array_safe( in ResizeInputTensor() local
152 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() local
241 if (!array_safe) { in SetTensor()
247 PyArrayObject* array = reinterpret_cast<PyArrayObject*>(array_safe.get()); in SetTensor()
/external/tensorflow/tensorflow/lite/python/optimize/
Dcalibration_wrapper.cc116 std::unique_ptr<PyObject, PyDecrefDeleter> array_safe( in SetTensor() local
118 if (!array_safe) { in SetTensor()
124 PyArrayObject* array = reinterpret_cast<PyArrayObject*>(array_safe.get()); in SetTensor()
/external/tensorflow/tensorflow/python/lib/core/
Dndarray_tensor.cc420 Safe_PyObjectPtr array_safe(make_safe( in PyArrayToTF_Tensor() local
422 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()