Home
last modified time | relevance | path

Searched refs:type_num (Results 1 – 8 of 8) sorted by relevance

/external/tensorflow/tensorflow/python/lib/core/
Dndarray_tensor_bridge.cc196 int type_num = -1; in ArrayFromMemory() local
198 TF_DataType_to_PyArray_TYPE(static_cast<TF_DataType>(dtype), &type_num); in ArrayFromMemory()
204 PyArray_SimpleNewFromData(dim_size, dims, type_num, data)); in ArrayFromMemory()
Dndarray_tensor.cc351 int type_num = -1; in GetPyArrayDescrForTensor() local
353 TF_DataType_to_PyArray_TYPE(TF_TensorType(tensor), &type_num)); in GetPyArrayDescrForTensor()
354 *descr = PyArray_DescrFromType(type_num); in GetPyArrayDescrForTensor()
/external/python/cpython2/Lib/lib2to3/
Dbtm_matcher.py160 def type_repr(type_num): argument
168 return _type_reprs.setdefault(type_num, type_num)
Dpytree.py22 def type_repr(type_num): argument
30 return _type_reprs.setdefault(type_num, type_num)
/external/python/cpython3/Lib/lib2to3/
Dbtm_matcher.py155 def type_repr(type_num): argument
163 return _type_reprs.setdefault(type_num, type_num)
Dpytree.py21 def type_repr(type_num): argument
29 return _type_reprs.setdefault(type_num, type_num)
/external/tensorflow/tensorflow/lite/python/interpreter_wrapper/
Dinterpreter_wrapper.cc540 TfLiteTensor** tensor, int* type_num) { in CheckGetTensorArgs() argument
550 *type_num = python_utils::TfLiteTypeToPyArrayType((*tensor)->type); in CheckGetTensorArgs()
551 if (*type_num == -1) { in CheckGetTensorArgs()
613 int type_num = 0; in GetTensor() local
616 CheckGetTensorArgs(interpreter_.get(), i, &tensor, &type_num); in GetTensor()
635 PyArray_SimpleNewFromData(dims.size(), dims.data(), type_num, data); in GetTensor()
646 sparse_buffer_dims.size(), sparse_buffer_dims.data(), type_num, data); in GetTensor()
687 int type_num = 0; in tensor() local
690 CheckGetTensorArgs(interpreter_.get(), i, &tensor, &type_num); in tensor()
698 dims.size(), dims.data(), type_num, tensor->data.raw)); in tensor()
/external/python/pybind11/include/pybind11/
Dnumpy.h58 int type_num; member