Searched refs:modelPath (Results 1 – 11 of 11) sorted by relevance
20 var modelPath: String! variable26 guard let modelPath = bundle.path( in setUp() variable33 self.modelPath = modelPath in setUp()37 modelPath = nil in tearDown()43 XCTAssertNotNil(Model(filePath: modelPath)) in testModel_InitWithFilePath()
25 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()
95 guard let modelPath = Bundle.main.path(forResource: fileInfo.name, ofType: fileInfo.extension) in loadModel() variable100 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()
49 private static String modelPath = null; field in OvicBenchmarkerActivity93 modelPath = "quantized_model.lite"; in initializeTest()98 modelPath = "detect.lite"; in initializeTest()101 AssetFileDescriptor fileDescriptor = am.openFd(modelPath); in initializeTest()195 + modelPath in benchmarkSession()
51 llvm::StringRef modelPath = analyzerOpts->Config["model-path"]; in onBodySynthesis() local55 if (!modelPath.empty()) in onBodySynthesis()57 llvm::StringRef(modelPath.str() + "/" + D->getName().str() + ".model"); in onBodySynthesis()
98 - (nullable instancetype)initWithModelPath:(NSString *)modelPath error:(NSError **)error;112 - (nullable instancetype)initWithModelPath:(NSString *)modelPath
44 public LangIdModel(String modelPath) { in LangIdModel() argument45 modelPtr = nativeNewFromPath(modelPath); in LangIdModel()
35 NativeInterpreterWrapper(String modelPath) { in NativeInterpreterWrapper() argument36 this(modelPath, /* options= */ null); in NativeInterpreterWrapper()39 NativeInterpreterWrapper(String modelPath, Interpreter.Options options) { in NativeInterpreterWrapper() argument41 long modelHandle = createModel(modelPath, errorHandle); in NativeInterpreterWrapper()
55 - (nullable instancetype)initWithModelPath:(NSString *)modelPath error:(NSError **)error {56 return [self initWithModelPath:modelPath61 - (nullable instancetype)initWithModelPath:(NSString *)modelPath71 const char *modelPathCString = modelPath.UTF8String;73 [NSString stringWithFormat:@"Cannot load model from path (%@).", modelPath];
44 public init(modelPath: String, options: InterpreterOptions? = nil) throws {45 guard let model = Model(filePath: modelPath) else { throw InterpreterError.failedToLoadModel }
126 * 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…