/external/tflite-support/tensorflow_lite_support/java/src/java/org/tensorflow/lite/support/model/ |
D | Model.java | 89 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/ |
D | ModelTests.swift | 21 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()
|
D | SignatureRunnerTest.swift | 22 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/ |
D | TFLNLClassifierTest.swift | 22 static let modelPath = bundle.path( variable 36 modelPath: TFLNLClassifierTest.modelPath, in testClassifyPositiveResult() 49 modelPath: TFLNLClassifierTest.modelPath, in testClassifyNegativeResult()
|
D | TFLNLClassifierTest.m | 22 @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/ |
D | LiteModuleLoader.java | 18 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()
|
D | Module.java | 24 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/ |
D | Module.java | 45 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/ |
D | MultiModelLoader.h | 31 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;
|
D | MultiModelLoader.cpp | 44 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()
|
D | ModelChunk.h | 39 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/ |
D | pytorch_testapp_jni.cpp | 33 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/ |
D | LibtorchNativeClient.java | 8 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/ |
D | TestLiteInterpreter.mm | 15 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/ |
D | PTMCoreMLCompiler.mm | 29 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__/ |
D | RunnerTest.swift | 17 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/ |
D | ResourceManager.swift | 12 @AppStorage("modelPath") var modelPath = "" variable 17 fileManager.fileExists(atPath: modelPath) 25 URL(fileURLWithPath: modelPath).deletingPathExtension().lastPathComponent
|
D | ContentView.swift | 253 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/ |
D | ArmnnConverter.cpp | 68 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/ |
D | TFLInterpreter.h | 106 - (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/ |
D | TFLBertNLClassifier.h | 38 + (instancetype)bertNLClassifierWithModelPath:(NSString *)modelPath 39 NS_SWIFT_NAME(bertNLClassifier(modelPath:));
|
/external/pytorch/android/pytorch_android/src/main/cpp/ |
D | pytorch_jni_lite.cpp | 53 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/ |
D | NativeInterpreterWrapperExperimental.java | 31 NativeInterpreterWrapperExperimental(String modelPath, InterpreterImpl.Options options) { in NativeInterpreterWrapperExperimental() argument 32 super(modelPath, options); in NativeInterpreterWrapperExperimental()
|
/external/clang/lib/StaticAnalyzer/Frontend/ |
D | ModelInjector.cpp | 51 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/ |
D | OvicBenchmarkerActivity.java | 50 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()
|