Home
last modified time | relevance | path

Searched refs:tokenizer_process_unit (Results 1 – 5 of 5) sorted by relevance

/external/tflite-support/tensorflow_lite_support/cc/text/tokenizers/
Dtokenizer_utils.cc59 const tflite::ProcessUnit* tokenizer_process_unit, in CreateTokenizerFromProcessUnit() argument
61 if (metadata_extractor == nullptr || tokenizer_process_unit == nullptr) { in CreateTokenizerFromProcessUnit()
67 switch (tokenizer_process_unit->options_type()) { in CreateTokenizerFromProcessUnit()
70 tokenizer_process_unit->options_as<tflite::BertTokenizerOptions>(); in CreateTokenizerFromProcessUnit()
79 tokenizer_process_unit->options_as<SentencePieceTokenizerOptions>(); in CreateTokenizerFromProcessUnit()
89 tokenizer_process_unit->options_as<RegexTokenizerOptions>(); in CreateTokenizerFromProcessUnit()
127 tokenizer_process_unit->options_type()), in CreateTokenizerFromProcessUnit()
Dtokenizer_utils.h33 const tflite::ProcessUnit* tokenizer_process_unit,
/external/tflite-support/tensorflow_lite_support/cc/task/text/nlclassifier/
Dbert_nl_classifier.cc176 const ProcessUnit* tokenizer_process_unit = in InitializeFromMetadata() local
178 if (tokenizer_process_unit == nullptr) { in InitializeFromMetadata()
185 CreateTokenizerFromProcessUnit(tokenizer_process_unit, in InitializeFromMetadata()
Dnl_classifier.cc85 const tflite::ProcessUnit* tokenizer_process_unit, in CreateRegexTokenizerFromProcessUnit() argument
87 if (metadata_extractor == nullptr || tokenizer_process_unit == nullptr) { in CreateRegexTokenizerFromProcessUnit()
94 if (tokenizer_process_unit->options_type() != in CreateRegexTokenizerFromProcessUnit()
99 "Incorrect options_type:", tokenizer_process_unit->options_type(), in CreateRegexTokenizerFromProcessUnit()
105 tokenizer_process_unit->options_as<RegexTokenizerOptions>(); in CreateRegexTokenizerFromProcessUnit()
/external/tflite-support/tensorflow_lite_support/cc/task/text/qa/
Dbert_question_answerer.cc354 const ProcessUnit* tokenizer_process_unit = in InitializeFromMetadata() local
356 if (tokenizer_process_unit == nullptr) { in InitializeFromMetadata()
363 CreateTokenizerFromProcessUnit(tokenizer_process_unit, in InitializeFromMetadata()