Home
last modified time | relevance | path

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

1234

/external/tflite-support/tensorflow_lite_support/java/src/java/org/tensorflow/lite/support/model/
DModel.java89 private final String modelPath; field in Model
105 private final String modelPath; field in Model.Builder
116 public Builder(@NonNull Context context, @NonNull String modelPath) throws IOException { in Builder() argument
117 this.modelPath = modelPath; in Builder()
118 byteModel = FileUtil.loadMappedFile(context, modelPath); in Builder()
140 return createModel(byteModel, modelPath, options); in build()
153 public static Model createModel(@NonNull Context context, @NonNull String modelPath) in createModel() argument
155 return createModel(context, modelPath, new Options.Builder().build()); in createModel()
168 @NonNull Context context, @NonNull String modelPath, @NonNull Options options) in createModel() argument
171 modelPath, "Model path in the asset folder cannot be empty."); in createModel()
[all …]
/external/tensorflow/tensorflow/lite/swift/Tests/
DModelTests.swift21 var modelPath: String! variable
27 guard let modelPath = bundle.path( in setUp() variable
34 self.modelPath = modelPath in setUp()
38 modelPath = nil in tearDown()
44 XCTAssertNotNil(Model(filePath: modelPath)) in testInitWithFilePath()
DSignatureRunnerTest.swift22 let interpreter = try Interpreter(modelPath: MultiSignaturesModel.path) in testSignatureKeys()
32 let interpreter = try Interpreter(modelPath: MultiSignaturesModel.path) in testResizeInputTensor()
58 let interpreter = try Interpreter(modelPath: MultiSignaturesModel.path) in testResizeInputTensor_invalidTensor()
77 let interpreter = try Interpreter(modelPath: MultiSignaturesModel.path) in testInvokeWithInputs()
/external/tflite-support/tensorflow_lite_support/ios/task/text/nlclassifier/Tests/
DTFLNLClassifierTest.swift22 static let modelPath = bundle.path( variable
36 modelPath: TFLNLClassifierTest.modelPath, in testClassifyPositiveResult()
49 modelPath: TFLNLClassifierTest.modelPath, in testClassifyNegativeResult()
DTFLNLClassifierTest.m22 @property(nonatomic, nullable) NSString *modelPath; property
32 self.modelPath = [bundle pathForResource:@"test_model_nl_classifier_with_regex_tokenizer"
40 TFLNLClassifier *nlClassifier = [TFLNLClassifier nlClassifierWithModelPath:self.modelPath
53 TFLNLClassifier *nlClassifier = [TFLNLClassifier nlClassifierWithModelPath:self.modelPath
/external/pytorch/android/pytorch_android/src/main/java/org/pytorch/
DLiteModuleLoader.java18 final String modelPath, final Map<String, String> extraFiles, final Device device) { in load() argument
19 return new Module(new LiteNativePeer(modelPath, extraFiles, device)); in load()
29 public static Module load(final String modelPath) { in load() argument
30 return new Module(new LiteNativePeer(modelPath, null, Device.CPU)); in load()
DModule.java24 final String modelPath, final Map<String, String> extraFiles, final Device device) { in load() argument
28 return new Module(new NativePeer(modelPath, extraFiles, device)); in load()
37 public static Module load(final String modelPath) { in load() argument
38 return load(modelPath, null, Device.CPU); in load()
/external/executorch/extension/android/src/main/java/org/pytorch/executorch/
DModule.java45 public static Module load(final String modelPath, int loadMode) { in load() argument
49 return new Module(new NativePeer(modelPath, loadMode)); in load()
58 public static Module load(final String modelPath) { in load() argument
59 return load(modelPath, LOAD_MODE_FILE); in load()
/external/executorch/examples/mediatek/executor_runner/llama_runner/
DMultiModelLoader.h31 const std::string& modelPath,
33 : mModelPathMap({{defaultModelId, modelPath}}),
69 void AddModel(const IdType& id, const std::string& modelPath);
78 virtual void* CreateModelInstance(const std::string& modelPath) = 0;
DMultiModelLoader.cpp44 for (const auto& [id, modelPath] : mModelPathMap) { in LoadModels()
49 void* instance = CreateModelInstance(modelPath); in LoadModels()
143 const std::string& modelPath) { in AddModel() argument
153 mModelPathMap[id] = modelPath; in AddModel()
DModelChunk.h39 const std::string& modelPath,
41 : MultiTokenSizeModelLoader(modelPath, initBatchSize), in MultiTokenSizeModelLoader() argument
98 void* CreateModelInstance(const std::string& modelPath) override;
/external/pytorch/android/test_app/app/src/main/cpp/
Dpytorch_testapp_jni.cpp33 const char* modelPath = env->GetStringUTFChars(jModelPath, 0); in loadAndForwardModel() local
34 assert(modelPath); in loadAndForwardModel()
42 torch::jit::Module module = torch::jit::load(modelPath); in loadAndForwardModel()
48 env->ReleaseStringUTFChars(jModelPath, modelPath); in loadAndForwardModel()
/external/pytorch/android/test_app/app/src/main/java/org/pytorch/testapp/
DLibtorchNativeClient.java8 public static void loadAndForwardModel(final String modelPath) { in loadAndForwardModel() argument
9 NativePeer.loadAndForwardModel(modelPath); in loadAndForwardModel()
20 private static native void loadAndForwardModel(final String modelPath); in loadAndForwardModel() argument
/external/pytorch/ios/TestApp/TestAppTests/
DTestLiteInterpreter.mm15 NSString* modelPath = [[NSBundle bundleForClass:[self class]] pathForResource:@"model_coreml"
17 auto module = torch::jit::_load_for_mobile(modelPath.UTF8String);
25 NSString* modelPath = [[NSBundle bundleForClass:[self class]] pathForResource:modelName
27 …XCTAssertNotNil(modelPath, @"Model not found. See https://github.com/pytorch/pytorch/tree/master/t…
28 [self runModel:modelPath];
38 - (void)runModel:(NSString*)modelPath {
40 auto module = torch::jit::_load_for_mobile(modelPath.UTF8String);
/external/pytorch/torch/csrc/jit/backends/coreml/objc/
DPTMCoreMLCompiler.mm29 NSString *modelPath = [NSTemporaryDirectory() stringByAppendingPathComponent:modelName];
50 BOOL writeSuccess = [PTMCoreMLCompiler _writeModelSpecs:modelSpecs toPath:modelPath];
55 return [PTMCoreMLCompiler _compileModel:modelName atPath:modelPath];
86 + (BOOL)_writeModelSpecs:(const std::string&)modelSpecs toPath:(NSString *)modelPath {
90 return [data writeToFile:modelPath atomically:YES];
93 + (BOOL)_compileModel:(NSString *)modelName atPath:(NSString *)modelPath {
95 NSURL *modelURL = [NSURL fileURLWithPath:modelPath];
99 [[NSFileManager defaultManager] removeItemAtPath:modelPath error:nil];
/external/executorch/examples/demo-apps/apple_ios/LLaMA/LLaMARunner/LLaMARunner/__tests__/
DRunnerTest.swift17 guard let modelPath = bundle.path(forResource: "xnnpack_dq_llama2", ofType: "pte"), in test() variable
22 let runner = Runner(modelPath: modelPath, tokenizerPath: tokenizerPath) in test()
/external/executorch/examples/demo-apps/apple_ios/LLaMA/LLaMA/Application/
DResourceManager.swift12 @AppStorage("modelPath") var modelPath = "" variable
17 fileManager.fileExists(atPath: modelPath)
25 URL(fileURLWithPath: modelPath).deletingPathExtension().lastPathComponent
DContentView.swift253 let modelPath = resourceManager.modelPath in generate() variable
255 let useLlama = modelPath.lowercased().contains("llama") in generate()
273 …runnerHolder.runner = runnerHolder.runner ?? Runner(modelPath: modelPath, tokenizerPath: tokenizer… in generate()
275 …runnerHolder.llavaRunner = runnerHolder.llavaRunner ?? LLaVARunner(modelPath: modelPath, tokenizer… in generate()
464 resourceManager.modelPath = url.path in handleFileImportResult()
/external/armnn/src/armnnConverter/
DArmnnConverter.cpp68 std::string& modelPath, in ParseCommandLineArgs() argument
91 ("m,model-path", "Path to model file.", cxxopts::value<std::string>(modelPath)) in ParseCommandLineArgs()
186 ArmnnConverter(const std::string& modelPath, in ArmnnConverter() argument
193 m_ModelPath(modelPath),
351 std::string modelPath; in main() local
363 …argc, argv, modelFormat, modelPath, inputNames, inputTensorShapeStrs, outputNames, outputPath, isM… in main()
388 …ArmnnConverter converter(modelPath, inputNames, inputTensorShapes, outputNames, outputPath, isMode… in main()
/external/tensorflow/tensorflow/lite/objc/apis/
DTFLInterpreter.h106 - (nullable instancetype)initWithModelPath:(NSString *)modelPath error:(NSError **)error;
120 - (nullable instancetype)initWithModelPath:(NSString *)modelPath
138 - (nullable instancetype)initWithModelPath:(NSString *)modelPath
/external/tflite-support/tensorflow_lite_support/ios/task/text/nlclassifier/Sources/
DTFLBertNLClassifier.h38 + (instancetype)bertNLClassifierWithModelPath:(NSString *)modelPath
39 NS_SWIFT_NAME(bertNLClassifier(modelPath:));
/external/pytorch/android/pytorch_android/src/main/cpp/
Dpytorch_jni_lite.cpp53 facebook::jni::alias_ref<jstring> modelPath, in initHybrid() argument
58 return makeCxxInstance(modelPath, extraFiles, device); in initHybrid()
72 facebook::jni::alias_ref<jstring> modelPath, in PytorchJni() argument
87 std::move(modelPath->toStdString()), std::nullopt, extra_files); in PytorchJni()
89 std::move(modelPath->toStdString()), std::nullopt, extra_files); in PytorchJni()
/external/tensorflow/tensorflow/lite/java/src/main/java/org/tensorflow/lite/
DNativeInterpreterWrapperExperimental.java31 NativeInterpreterWrapperExperimental(String modelPath, InterpreterImpl.Options options) { in NativeInterpreterWrapperExperimental() argument
32 super(modelPath, options); in NativeInterpreterWrapperExperimental()
/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/java/ovic/demo/app/
DOvicBenchmarkerActivity.java50 private static String modelPath = null; field in OvicBenchmarkerActivity
94 modelPath = "quantized_model.lite"; in initializeTest()
99 modelPath = "detect.lite"; in initializeTest()
102 AssetFileDescriptor fileDescriptor = am.openFd(modelPath); in initializeTest()
197 + modelPath in benchmarkSession()

1234