/external/libtextclassifier/java/src/com/android/textclassifier/common/ |
D | ModelFileManager.java | 366 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/ |
D | ModelFileManagerTest.java | 101 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/ |
D | Interpreter.java | 203 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/ |
D | OvicValidator.java | 45 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/ |
D | NLClassifier.java | 160 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()
|
D | BertNLClassifier.java | 76 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/ |
D | ObjectDetector.java | 113 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/ |
D | ImageSegmenter.java | 103 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/ |
D | ImageClassifier.java | 97 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/ |
D | BertQuestionAnswerer.java | 92 public static BertQuestionAnswerer createFromFile(File modelFile) 95 ParcelFileDescriptor.open(modelFile, ParcelFileDescriptor.MODE_READ_ONLY)) {
|
/external/skqp/tools/skqp/ |
D | make_gmkb.go | 206 modelFile, err := os.Create(path.Join(output, "models.txt")) 211 fmt.Fprintln(modelFile, v)
|
/external/tensorflow/tensorflow/lite/g3doc/inference_with_metadata/task_library/ |
D | bert_nl_classifier.md | 60 BertNLClassifier classifier = BertNLClassifier.createFromFile(context, modelFile);
|
D | bert_question_answerer.md | 60 BertQuestionAnswerer answerer = BertQuestionAnswerer.createFromFile(androidContext, modelFile);
|
D | image_segmenter.md | 73 ImageSegmenter imageSegmenter = ImageSegmenter.createFromFileAndOptions(context, modelFile, options…
|
D | nl_classifier.md | 66 NLClassifier classifier = NLClassifier.createFromFileAndOptions(context, modelFile, options);
|
D | object_detector.md | 79 ObjectDetector objectDetector = ObjectDetector.createFromFileAndOptions(context, modelFile, options…
|
D | image_classifier.md | 87 ImageClassifier imageClassifier = ImageClassifier.createFromFileAndOptions(context, modelFile, opti…
|
/external/tensorflow/tensorflow/lite/g3doc/guide/ |
D | inference.md | 134 public Interpreter(@NotNull File modelFile);
|