Searched refs:dim_array (Results 1 – 3 of 3) sorted by relevance
32 const TfLiteIntArray* dim_array, in FillRandomString() argument35 for (size_t i = 0; i < dim_array->size; i++) { in FillRandomString()36 num_elements *= dim_array->data[i]; in FillRandomString()
90 int GetNumElements(const TfLiteIntArray* dim_array) { in GetNumElements() argument92 for (size_t i = 0; i < dim_array->size; i++) { in GetNumElements()93 num_elements *= dim_array->data[i]; in GetNumElements()99 const TfLiteIntArray* dim_array, in FillRandomString() argument101 int num_elements = GetNumElements(dim_array); in FillRandomString()
1143 TfLiteIntArray* dim_array = TfLiteIntArrayCreate(dims.size()); in AddNewInputConstantTensor() local1144 dim_array->size = dims.size(); in AddNewInputConstantTensor()1145 std::copy(dims.begin(), dims.end(), dim_array->data); in AddNewInputConstantTensor()1148 nn_type, type, dim_array, tensor_value, quant_params, tensor_index); in AddNewInputConstantTensor()1149 TfLiteIntArrayFree(dim_array); in AddNewInputConstantTensor()