Home
last modified time | relevance | path

Searched refs:modelFile (Results 1 – 18 of 18) sorted by relevance

/external/libtextclassifier/java/src/com/android/textclassifier/common/
DModelFileManager.java366 for (ModelFile modelFile : allModelFiles) { in deleteUnusedModelFiles()
367 if (modelFile.canWrite()) { in deleteUnusedModelFiles()
368 TcLog.d(TAG, "Deleting model: " + modelFile); in deleteUnusedModelFiles()
369 if (!modelFile.delete()) { in deleteUnusedModelFiles()
370 TcLog.w(TAG, "Failed to delete model: " + modelFile); in deleteUnusedModelFiles()
393 for (ModelFile modelFile : listModelFiles(modelType)) { in dump()
394 printWriter.println(modelFile.toString()); in dump()
565 ModelFile modelFile = (ModelFile) o; in equals() local
566 return version == modelFile.version in equals()
567 && languageIndependent == modelFile.languageIndependent in equals()
[all …]
/external/libtextclassifier/java/tests/instrumentation/src/com/android/textclassifier/common/
DModelFileManagerTest.java101 modelFiles.stream().filter(modelFile -> modelFile.isAsset).collect(Collectors.toList()); in verifyModelPreloadedAsAsset()
354 ModelFileManager.ModelFile modelFile = in deleteUnusedModelFiles_readOnlyModelsUntouched() local
360 ImmutableList.of(modelType -> ImmutableList.of(modelFile))); in deleteUnusedModelFiles_readOnlyModelsUntouched()
421 ModelFileManager.ModelFile modelFile = in modelFile_toModelInfo() local
425 ModelInfo modelInfo = modelFile.toModelInfo(); in modelFile_toModelInfo()
443 .map(modelFile -> modelFile.transform(ModelInfo::toModelName).or("")) in modelFile_toModelInfos()
451 File modelFile = new File(rootTestDir, "test.model"); in regularFileFullMatchLister() local
452 Files.copy(TestDataUtils.getTestAnnotatorModelFile(), modelFile); in regularFileFullMatchLister() local
457 new RegularFileFullMatchLister(MODEL_TYPE, modelFile, () -> true); in regularFileFullMatchLister()
461 assertThat(listedModels.get(0).absolutePath).isEqualTo(modelFile.getAbsolutePath()); in regularFileFullMatchLister()
/external/tensorflow/tensorflow/lite/java/src/main/java/org/tensorflow/lite/
DInterpreter.java203 public Interpreter(@NonNull File modelFile) { in Interpreter() argument
204 this(modelFile, /*options = */ null); in Interpreter()
216 public Interpreter(@NonNull File modelFile, int numThreads) { in Interpreter() argument
217 this(modelFile, new Options().setNumThreads(numThreads)); in Interpreter()
228 public Interpreter(@NonNull File modelFile, Options options) { in Interpreter() argument
229 wrapper = new NativeInterpreterWrapper(modelFile.getAbsolutePath(), options); in Interpreter()
/external/tensorflow/tensorflow/lite/java/ovic/src/main/java/org/tensorflow/ovic/
DOvicValidator.java45 final String modelFile = args[0]; in main() local
53 MappedByteBuffer model = loadModelFile(modelFile); in main()
73 System.out.printf("Successfully validated %s.%n", modelFile); in main()
76 System.out.printf("Failed to validate %s.%n", modelFile); in main()
/external/tflite-support/tensorflow_lite_support/java/src/java/org/tensorflow/lite/task/text/nlclassifier/
DNLClassifier.java160 public static NLClassifier createFromFile(File modelFile) throws IOException { in createFromFile() argument
161 return createFromFileAndOptions(modelFile, NLClassifierOptions.builder().build()); in createFromFile()
187 File modelFile, final NLClassifierOptions options) throws IOException { in createFromFileAndOptions() argument
189 ParcelFileDescriptor.open(modelFile, ParcelFileDescriptor.MODE_READ_ONLY)) { in createFromFileAndOptions()
DBertNLClassifier.java76 public static BertNLClassifier createFromFile(File modelFile) throws IOException { in createFromFile() argument
78 ParcelFileDescriptor.open(modelFile, ParcelFileDescriptor.MODE_READ_ONLY)) { in createFromFile()
/external/tflite-support/tensorflow_lite_support/java/src/java/org/tensorflow/lite/task/vision/detector/
DObjectDetector.java113 public static ObjectDetector createFromFile(File modelFile) throws IOException { in createFromFile() argument
114 return createFromFileAndOptions(modelFile, ObjectDetectorOptions.builder().build()); in createFromFile()
170 File modelFile, final ObjectDetectorOptions options) throws IOException {
172 ParcelFileDescriptor.open(modelFile, ParcelFileDescriptor.MODE_READ_ONLY)) {
/external/tflite-support/tensorflow_lite_support/java/src/java/org/tensorflow/lite/task/vision/segmenter/
DImageSegmenter.java103 public static ImageSegmenter createFromFile(File modelFile) throws IOException { in createFromFile() argument
104 return createFromFileAndOptions(modelFile, ImageSegmenterOptions.builder().build()); in createFromFile()
150 File modelFile, final ImageSegmenterOptions options) throws IOException { in createFromFileAndOptions() argument
152 ParcelFileDescriptor.open(modelFile, ParcelFileDescriptor.MODE_READ_ONLY)) { in createFromFileAndOptions()
/external/tflite-support/tensorflow_lite_support/java/src/java/org/tensorflow/lite/task/vision/classifier/
DImageClassifier.java97 public static ImageClassifier createFromFile(File modelFile) throws IOException { in createFromFile() argument
98 return createFromFileAndOptions(modelFile, ImageClassifierOptions.builder().build()); in createFromFile()
154 File modelFile, final ImageClassifierOptions options) throws IOException {
156 ParcelFileDescriptor.open(modelFile, ParcelFileDescriptor.MODE_READ_ONLY)) {
/external/tflite-support/tensorflow_lite_support/java/src/java/org/tensorflow/lite/task/text/qa/
DBertQuestionAnswerer.java92 public static BertQuestionAnswerer createFromFile(File modelFile)
95 ParcelFileDescriptor.open(modelFile, ParcelFileDescriptor.MODE_READ_ONLY)) {
/external/skqp/tools/skqp/
Dmake_gmkb.go206 modelFile, err := os.Create(path.Join(output, "models.txt"))
211 fmt.Fprintln(modelFile, v)
/external/tensorflow/tensorflow/lite/g3doc/inference_with_metadata/task_library/
Dbert_nl_classifier.md60 BertNLClassifier classifier = BertNLClassifier.createFromFile(context, modelFile);
Dbert_question_answerer.md60 BertQuestionAnswerer answerer = BertQuestionAnswerer.createFromFile(androidContext, modelFile);
Dimage_segmenter.md73 ImageSegmenter imageSegmenter = ImageSegmenter.createFromFileAndOptions(context, modelFile, options…
Dnl_classifier.md66 NLClassifier classifier = NLClassifier.createFromFileAndOptions(context, modelFile, options);
Dobject_detector.md79 ObjectDetector objectDetector = ObjectDetector.createFromFileAndOptions(context, modelFile, options…
Dimage_classifier.md87 ImageClassifier imageClassifier = ImageClassifier.createFromFileAndOptions(context, modelFile, opti…
/external/tensorflow/tensorflow/lite/g3doc/guide/
Dinference.md134 public Interpreter(@NotNull File modelFile);