Home
last modified time | relevance | path

Searched refs:modelPath (Results 1 – 11 of 11) sorted by relevance

/external/tensorflow/tensorflow/lite/experimental/swift/Tests/
DModelTests.swift20 var modelPath: String! variable
26 guard let modelPath = bundle.path( in setUp() variable
33 self.modelPath = modelPath in setUp()
37 modelPath = nil in tearDown()
43 XCTAssertNotNil(Model(filePath: modelPath)) in testModel_InitWithFilePath()
DInterpreterTests.swift25 interpreter = try! Interpreter(modelPath: AddModel.path) in setUp()
35 XCTAssertNoThrow(try Interpreter(modelPath: AddModel.path)) in testInterpreter_InitWithModelPath()
39 XCTAssertThrowsError(try Interpreter(modelPath: "/invalid/path")) { error in in testInterpreter_Init_ThrowsFailedToLoadModel()
47 XCTAssertNoThrow(try Interpreter(modelPath: AddModel.path, options: options)) in testInterpreter_InitWithModelPathAndOptions()
76 interpreter = try Interpreter(modelPath: AddQuantizedModel.path) in testInterpreter_InputTensorAtIndex_QuantizedModel()
109 interpreter = try Interpreter(modelPath: AddQuantizedModel.path) in testInterpreter_OutputTensorAtIndex_QuantizedModel()
/external/tensorflow/tensorflow/lite/experimental/swift/TestApps/TensorFlowLiteApp/TensorFlowLiteApp/
DViewController.swift95 guard let modelPath = Bundle.main.path(forResource: fileInfo.name, ofType: fileInfo.extension) in loadModel() variable
100 setUpInterpreter(withModelPath: modelPath) in loadModel()
103 private func setUpInterpreter(withModelPath modelPath: String) { in setUpInterpreter()
108 self.interpreter = try Interpreter(modelPath: modelPath, options: options) in setUpInterpreter()
/external/tensorflow/tensorflow/lite/java/ovic/demo/app/
DOvicBenchmarkerActivity.java49 private static String modelPath = null; field in OvicBenchmarkerActivity
93 modelPath = "quantized_model.lite"; in initializeTest()
98 modelPath = "detect.lite"; in initializeTest()
101 AssetFileDescriptor fileDescriptor = am.openFd(modelPath); in initializeTest()
195 + modelPath in benchmarkSession()
/external/clang/lib/StaticAnalyzer/Frontend/
DModelInjector.cpp51 llvm::StringRef modelPath = analyzerOpts->Config["model-path"]; in onBodySynthesis() local
55 if (!modelPath.empty()) in onBodySynthesis()
57 llvm::StringRef(modelPath.str() + "/" + D->getName().str() + ".model"); in onBodySynthesis()
/external/tensorflow/tensorflow/lite/experimental/objc/apis/
DTFLInterpreter.h98 - (nullable instancetype)initWithModelPath:(NSString *)modelPath error:(NSError **)error;
112 - (nullable instancetype)initWithModelPath:(NSString *)modelPath
/external/libtextclassifier/java/com/google/android/textclassifier/
DLangIdModel.java44 public LangIdModel(String modelPath) { in LangIdModel() argument
45 modelPtr = nativeNewFromPath(modelPath); in LangIdModel()
/external/tensorflow/tensorflow/lite/java/src/main/java/org/tensorflow/lite/
DNativeInterpreterWrapper.java35 NativeInterpreterWrapper(String modelPath) { in NativeInterpreterWrapper() argument
36 this(modelPath, /* options= */ null); in NativeInterpreterWrapper()
39 NativeInterpreterWrapper(String modelPath, Interpreter.Options options) { in NativeInterpreterWrapper() argument
41 long modelHandle = createModel(modelPath, errorHandle); in NativeInterpreterWrapper()
/external/tensorflow/tensorflow/lite/experimental/objc/sources/
DTFLInterpreter.mm55 - (nullable instancetype)initWithModelPath:(NSString *)modelPath error:(NSError **)error {
56 return [self initWithModelPath:modelPath
61 - (nullable instancetype)initWithModelPath:(NSString *)modelPath
71 const char *modelPathCString = modelPath.UTF8String;
73 [NSString stringWithFormat:@"Cannot load model from path (%@).", modelPath];
/external/tensorflow/tensorflow/lite/experimental/swift/Sources/
DInterpreter.swift44 public init(modelPath: String, options: InterpreterOptions? = nil) throws {
45 guard let model = Model(filePath: modelPath) else { throw InterpreterError.failedToLoadModel }
/external/tensorflow/tensorflow/lite/java/ovic/
DREADME.md126 * Add your model to the benchmarker apk by changing `modelPath` and `testImagePath` to your submiss…
132 modelPath = "my_model.lite";
136 If you are adding a detection model, simply modify `modelPath` and `testImagePath` in the else bloc…