Home
last modified time | relevance | path

Searched refs:ModelInfo (Results 1 – 10 of 10) sorted by relevance

/external/libtextclassifier/java/tests/instrumentation/src/com/android/textclassifier/common/logging/
DResultIdUtilsTest.java24 import com.android.textclassifier.common.logging.ResultIdUtils.ModelInfo;
39 ImmutableList<Optional<ModelInfo>> modelInfos = in createId_customHash()
43 new ModelInfo(/* version= */ 1, ImmutableList.of(Locale.ENGLISH, Locale.FRENCH))), in createId_customHash()
45 Optional.of(new ModelInfo(/* version= */ 2, ImmutableList.of(Locale.CHINESE))), in createId_customHash()
62 Optional.of(new ModelInfo(MODEL_VERSION, ImmutableList.of(Locale.ENGLISH))))); in createId_selection()
87 ModelInfo modelInfo = new ModelInfo(700, ImmutableList.of(Locale.ENGLISH)); in modelInfo_toModelName()
94 ModelInfo modelInfo = new ModelInfo(700, "en,fr"); in modelInfo_toModelName_supportedLanguageTags()
/external/tflite-support/tensorflow_lite_support/codegen/
Dandroid_java_generator.cc59 using details_android_java::ModelInfo;
88 bool GenerateWrapperClass(CodeWriter*, const ModelInfo&, ErrorReporter*);
89 bool GenerateWrapperImports(CodeWriter*, const ModelInfo&, ErrorReporter*);
90 bool GenerateWrapperInputs(CodeWriter*, const ModelInfo&, ErrorReporter*);
91 bool GenerateWrapperOutputs(CodeWriter*, const ModelInfo&, ErrorReporter*);
92 bool GenerateWrapperMetadata(CodeWriter*, const ModelInfo&, ErrorReporter*);
93 bool GenerateWrapperAPI(CodeWriter*, const ModelInfo&, ErrorReporter*);
164 ModelInfo CreateModelInfo(const ModelMetadata* metadata, in CreateModelInfo()
169 ModelInfo model_info; in CreateModelInfo()
235 const ModelInfo& model_info) { in SetCodeWriterWithModelInfo()
[all …]
Dandroid_java_generator.h53 struct ModelInfo { struct
/external/libtextclassifier/java/src/com/android/textclassifier/common/logging/
DResultIdUtils.java45 Context context, String text, int start, int end, List<Optional<ModelInfo>> modelInfos) { in createId()
54 public static String createId(int hash, List<Optional<ModelInfo>> modelInfos) { in createId()
57 for (Optional<ModelInfo> modelInfo : modelInfos) { in createId()
58 modelNames.add(modelInfo.transform(ModelInfo::toModelName).or("")); in createId()
88 public static class ModelInfo { class in ResultIdUtils
91 public ModelInfo(int version, List<Locale> locales) { in ModelInfo() method in ResultIdUtils.ModelInfo
102 public ModelInfo(int version, String supportedLanguageTags) { in ModelInfo() method in ResultIdUtils.ModelInfo
/external/libtextclassifier/java/src/com/android/textclassifier/common/statsd/
DGenerateLinksLogger.java25 import com.android.textclassifier.common.logging.ResultIdUtils.ModelInfo;
61 Optional<ModelInfo> annotatorModel, in logGenerateLinks()
62 Optional<ModelInfo> langIdModel) { in logGenerateLinks()
141 Optional<ModelInfo> annotatorModel, in writeStats()
142 Optional<ModelInfo> langIdModel) { in writeStats()
143 String annotatorModelName = annotatorModel.transform(ModelInfo::toModelName).or(""); in writeStats()
144 String langIdModelName = langIdModel.transform(ModelInfo::toModelName).or(""); in writeStats()
/external/libtextclassifier/java/tests/instrumentation/src/com/android/textclassifier/common/statsd/
DGenerateLinksLoggerTest.java36 import com.android.textclassifier.common.logging.ResultIdUtils.ModelInfo;
58 private static final ModelInfo ANNOTATOR_MODEL =
59 new ModelInfo(1, ImmutableList.of(Locale.ENGLISH));
60 private static final ModelInfo LANGID_MODEL =
61 new ModelInfo(2, ImmutableList.of(Locale.forLanguageTag("*")));
DSelectionEventConverterTest.java32 import com.android.textclassifier.common.logging.ResultIdUtils.ModelInfo;
183 Optional.of(new ModelInfo(/* version= */ 702, ImmutableList.of(Locale.ENGLISH))))); in createResultId()
/external/libtextclassifier/java/tests/instrumentation/src/com/android/textclassifier/common/
DModelFileManagerTest.java31 import com.android.textclassifier.common.logging.ResultIdUtils.ModelInfo;
425 ModelInfo modelInfo = modelFile.toModelInfo(); in modelFile_toModelInfo()
437 ImmutableList<Optional<ModelInfo>> modelInfos = in modelFile_toModelInfos()
443 .map(modelFile -> modelFile.transform(ModelInfo::toModelName).or("")) in modelFile_toModelInfos()
/external/libtextclassifier/java/src/com/android/textclassifier/common/
DModelFileManager.java29 import com.android.textclassifier.common.logging.ResultIdUtils.ModelInfo;
580 public ModelInfo toModelInfo() { in toModelInfo()
581 return new ModelInfo(version, supportedLocales.toLanguageTags()); in toModelInfo()
596 public static ImmutableList<Optional<ModelInfo>> toModelInfos( in toModelInfos()
/external/libtextclassifier/java/src/com/android/textclassifier/
DTextClassifierImpl.java55 import com.android.textclassifier.common.logging.ResultIdUtils.ModelInfo;
303 Optional<ModelInfo> annotatorModelInfo; in generateLinks()
304 Optional<ModelInfo> langIdModelInfo; in generateLinks()