Home
last modified time | relevance | path

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

/external/tensorflow/tensorflow/lite/python/optimize/
Dcalibration_wrapper.cc381 std::unique_ptr<PyObject, PyDecrefDeleter> array_safe( in SetTensor() local
383 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() local
472 if (!array_safe) { in SetTensor()
478 PyArrayObject* array = reinterpret_cast<PyArrayObject*>(array_safe.get()); in SetTensor()
/external/tensorflow/tensorflow/python/lib/core/
Dndarray_tensor.cc484 Safe_PyObjectPtr array_safe(make_safe( in NdarrayToTensor() local
486 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()
/external/tensorflow/tensorflow/lite/python/interpreter_wrapper/
Dinterpreter_wrapper.cc315 std::unique_ptr<PyObject, PyDecrefDeleter> array_safe( in ResizeInputTensorImpl() local
317 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() local
496 if (!array_safe) { in SetTensor()
502 PyArrayObject* array = reinterpret_cast<PyArrayObject*>(array_safe.get()); in SetTensor()