Home
last modified time | relevance | path

Searched refs:num_strings (Results 1 – 22 of 22) sorted by relevance

/external/tensorflow/tensorflow/lite/
Dstring_util.cc72 int32_t num_strings = offset_.size() - 1; in WriteToBuffer() local
79 + sizeof(int32_t) * (num_strings + 2); // size of header in WriteToBuffer()
85 memcpy(*buffer, &num_strings, sizeof(int32_t)); in WriteToBuffer()
88 int32_t start = sizeof(int32_t) * (num_strings + 2); in WriteToBuffer()
/external/u-boot/lib/libavb/
Davb_util.c330 size_t num_strings, n; in avb_strdupv() local
334 num_strings = 0; in avb_strdupv()
339 strings[num_strings] = str; in avb_strdupv()
340 lengths[num_strings] = str_len; in avb_strdupv()
345 num_strings++; in avb_strdupv()
346 if (num_strings == AVB_STRDUPV_MAX_NUM_STRINGS) { in avb_strdupv()
360 for (n = 0; n < num_strings; n++) { in avb_strdupv()
/external/avb/libavb/
Davb_util.c349 size_t num_strings, n; in avb_strdupv() local
353 num_strings = 0; in avb_strdupv()
358 strings[num_strings] = str; in avb_strdupv()
359 lengths[num_strings] = str_len; in avb_strdupv()
364 num_strings++; in avb_strdupv()
365 if (num_strings == AVB_STRDUPV_MAX_NUM_STRINGS) { in avb_strdupv()
379 for (n = 0; n < num_strings; n++) { in avb_strdupv()
/external/tensorflow/tensorflow/lite/delegates/flex/
Dbuffer_map.cc109 StringTfLiteTensorBuffer(const TfLiteTensor* tensor, int num_strings) in StringTfLiteTensorBuffer() argument
111 num_strings != 0 in StringTfLiteTensorBuffer()
112 ? tensorflow::cpu_allocator()->Allocate<string>(num_strings) in StringTfLiteTensorBuffer()
114 num_strings_(num_strings) { in StringTfLiteTensorBuffer()
Dtest_util.cc42 auto num_strings = GetStringCount(tensor->data.raw); in GetStringValues() local
43 for (size_t i = 0; i < num_strings; ++i) { in GetStringValues()
/external/tensorflow/tensorflow/lite/models/smartreply/ops/
Dextract_feature.cc80 int num_strings = tflite::GetStringCount(input); in Eval() local
85 for (int i = 0; i < num_strings; i++) { in Eval()
101 if (num_strings == 0) { in Eval()
/external/libcups/cups/
Dipp-support.c1943 num_strings; /* Number of strings to compare */ in ippEnumValue() local
1960 num_strings = (int)(sizeof(ipp_document_states) / sizeof(ipp_document_states[0])); in ippEnumValue()
1976 num_strings = (int)(sizeof(ipp_finishings) / sizeof(ipp_finishings[0])); in ippEnumValue()
1982 num_strings = (int)(sizeof(ipp_job_collation_types) / in ippEnumValue()
1988 num_strings = (int)(sizeof(ipp_job_states) / sizeof(ipp_job_states[0])); in ippEnumValue()
1998 num_strings = (int)(sizeof(ipp_orientation_requesteds) / in ippEnumValue()
2007 num_strings = (int)(sizeof(ipp_print_qualities) / sizeof(ipp_print_qualities[0])); in ippEnumValue()
2012 num_strings = (int)(sizeof(ipp_printer_states) / sizeof(ipp_printer_states[0])); in ippEnumValue()
2018 for (i = 0; i < num_strings; i ++) in ippEnumValue()
/external/tensorflow/tensorflow/lite/tools/
Dverifier.cc62 uint32_t num_strings = *GetIntPtr(buffer_ptr); in VerifyStringTensorBuffer() local
63 if (num_strings > kMaxNumString) { in VerifyStringTensorBuffer()
66 tensor.name()->c_str(), num_strings); in VerifyStringTensorBuffer()
70 static_cast<uint32_t>(num_strings + 2) * sizeof(int32_t); in VerifyStringTensorBuffer()
90 for (int i = 1; i <= num_strings; i++, offset += sizeof(int32_t)) { in VerifyStringTensorBuffer()
/external/tensorflow/tensorflow/lite/testing/
Dtf_driver.cc60 int num_strings = values_as_string.empty() ? 0 : GetStringCount(s.data()); in FillTensorWithTfLiteHexString() local
62 if (num_strings == tensor->NumElements()) { in FillTensorWithTfLiteHexString()
64 for (size_t i = 0; i < num_strings; ++i) { in FillTensorWithTfLiteHexString()
70 return num_strings; in FillTensorWithTfLiteHexString()
/external/libtextclassifier/utils/tflite/
Dtext_encoder.cc217 const int num_strings = tflite::GetStringCount(&input_text); in Eval() local
221 TF_LITE_ENSURE_EQ(context, num_strings, num_strings_param); in Eval()
237 encoded_offsets.reserve(num_strings); in Eval()
241 for (int i = 0; i < num_strings; ++i) { in Eval()
/external/tensorflow/tensorflow/lite/kernels/
Dtest_util.cc163 const int num_strings = GetStringCount(tensor_ptr); in ExtractVector() local
165 result.reserve(num_strings); in ExtractVector()
166 for (int i = 0; i < num_strings; ++i) { in ExtractVector()
Dgather.cc115 const PositionT num_strings = GetStringCount(input); in GatherStrings() local
118 TF_LITE_ENSURE(context, pos < num_strings); in GatherStrings()
/external/libtextclassifier/utils/
Dtflite-model-executor.cc229 const int num_strings = tflite::GetStringCount(output_tensor); in Output() local
230 std::vector<tflite::StringRef> output(num_strings); in Output()
231 for (int i = 0; i < num_strings; i++) { in Output()
/external/tensorflow/tensorflow/lite/toco/tflite/
Dtypes.cc63 int32_t num_strings = ::tflite::GetStringCount(src_data); in CopyStringFromBuffer() local
64 for (int i = 0; i < num_strings; i++) { in CopyStringFromBuffer()
/external/tensorflow/tensorflow/core/lib/strings/
Dstr_util.cc224 std::vector<string> num_strings = Split(text, delim); in SplitAndParseAsInts() local
225 for (const auto& s : num_strings) { in SplitAndParseAsInts()
/external/freetype/src/cff/
Dcffobjs.c679 for ( idx = 1; idx < cff->num_strings; idx++ ) in cff_face_init()
694 if ( cff->num_strings ) in cff_face_init()
696 FT_Byte* s1 = cff->strings[cff->num_strings - 1]; in cff_face_init()
702 FT_TRACE4(( " %5d ", cff->num_strings + 390 )); in cff_face_init()
Dcffload.c649 return ( element < font->num_strings ) in cff_index_get_string()
2335 font->num_strings = string_index.count; in cff_font_load()
/external/tensorflow/tensorflow/lite/python/interpreter_wrapper/
Dinterpreter_wrapper.cc368 auto num_strings = GetStringCount(tensor->data.raw); in GetTensor() local
369 for (int j = 0; j < num_strings; ++j) { in GetTensor()
/external/yapf/yapf/yapflib/
Dformat_decision_state.py793 num_strings = 0
797 num_strings += 1
799 return num_strings > 1
/external/freetype/include/freetype/internal/
Dcfftypes.h376 FT_UInt num_strings; member
/external/perf_data_converter/src/quipper/
Dperf_reader.cc1595 num_string_data_type num_strings = src_array.size(); in WriteRepeatedStringMetadata() local
1596 if (!data->WriteDataValue(&num_strings, sizeof(num_strings), in WriteRepeatedStringMetadata()
/external/freetype/
DChangeLog.246275 (CFF_FontRec): Add `num_strings', `strings', and `string_pool'
6286 (cff_font_load): Initialize `num_strings', `strings', and