Searched refs:type_num (Results 1 – 8 of 8) sorted by relevance
/external/tensorflow/tensorflow/lite/python/interpreter_wrapper/ |
D | interpreter_wrapper.cc | 303 TfLiteTensor** tensor, int* type_num) { in CheckGetTensorArgs() argument 313 *type_num = python_utils::TfLiteTypeToPyArrayType((*tensor)->type); in CheckGetTensorArgs() 314 if (*type_num == -1) { in CheckGetTensorArgs() 332 int type_num = 0; in GetTensor() local 335 CheckGetTensorArgs(interpreter_.get(), i, &tensor, &type_num); in GetTensor() 351 PyArray_SimpleNewFromData(dims.size(), dims.data(), type_num, data); in GetTensor() 391 int type_num = 0; in tensor() local 394 CheckGetTensorArgs(interpreter_.get(), i, &tensor, &type_num); in tensor() 402 dims.size(), dims.data(), type_num, tensor->data.raw)); in tensor()
|
/external/tensorflow/tensorflow/python/lib/core/ |
D | ndarray_tensor_bridge.cc | 200 int type_num = -1; in ArrayFromMemory() local 202 TF_DataType_to_PyArray_TYPE(static_cast<TF_DataType>(dtype), &type_num); in ArrayFromMemory() 208 PyArray_SimpleNewFromData(dim_size, dims, type_num, data); in ArrayFromMemory()
|
D | ndarray_tensor.cc | 314 int type_num = -1; in GetPyArrayDescrForTensor() local 316 TF_DataType_to_PyArray_TYPE(TF_TensorType(tensor), &type_num)); in GetPyArrayDescrForTensor() 317 *descr = PyArray_DescrFromType(type_num); in GetPyArrayDescrForTensor()
|
/external/python/cpython2/Lib/lib2to3/ |
D | btm_matcher.py | 160 def type_repr(type_num): argument 168 return _type_reprs.setdefault(type_num, type_num)
|
D | pytree.py | 22 def type_repr(type_num): argument 30 return _type_reprs.setdefault(type_num, type_num)
|
/external/python/cpython3/Lib/lib2to3/ |
D | btm_matcher.py | 155 def type_repr(type_num): argument 163 return _type_reprs.setdefault(type_num, type_num)
|
D | pytree.py | 21 def type_repr(type_num): argument 29 return _type_reprs.setdefault(type_num, type_num)
|
/external/tensorflow/tensorflow/compiler/xla/python/ |
D | numpy_bridge.cc | 170 return reinterpret_cast<PyArray_Descr*>(o)->type_num; in NumpyTypenum()
|