Home
last modified time | relevance | path

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

/external/tensorflow/tensorflow/python/lib/core/
Dndarray_tensor.cc477 Safe_PyObjectPtr array_safe(make_safe( in NdarrayToTensor() local
479 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()
/external/tensorflow/tensorflow/lite/python/interpreter_wrapper/
Dinterpreter_wrapper.cc250 std::unique_ptr<PyObject, PyDecrefDeleter> array_safe( in ResizeInputTensorImpl() local
252 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() local
423 if (!array_safe) { in SetTensor()
429 PyArrayObject* array = reinterpret_cast<PyArrayObject*>(array_safe.get()); in SetTensor()
/external/tensorflow/tensorflow/lite/python/optimize/
Dcalibration_wrapper.cc239 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()