From d54465000a78331df0a77834c29b20f2c09af6e2 Mon Sep 17 00:00:00 2001 From: Devin Ha Date: Mon, 20 May 2024 10:25:34 +0200 Subject: [PATCH] Add openvino dependency --- build.sbt | 14 ++++++++++++-- project/Dependencies.scala | 3 +++ 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/build.sbt b/build.sbt index 284cadb1aaec1b..3cddfaa8db4716 100644 --- a/build.sbt +++ b/build.sbt @@ -153,8 +153,7 @@ lazy val utilDependencies = Seq( exclude ("org.slf4j", "slf4j-api"), gcpStorage exclude ("com.fasterxml.jackson.core", "jackson-core") - exclude ("com.fasterxml.jackson.dataformat", "jackson-dataformat-cbor") - , + exclude ("com.fasterxml.jackson.dataformat", "jackson-dataformat-cbor"), greex, azureIdentity, azureStorage) @@ -181,6 +180,16 @@ val onnxDependencies: Seq[sbt.ModuleID] = else Seq(onnxCPU) +val openVinoDependencies: Seq[sbt.ModuleID] = +// if (is_gpu.equals("true")) +// Seq(openVinoGPU) +// else if (is_silicon.equals("true")) +// Seq(openVinoCPU) +// else if (is_aarch64.equals("true")) +// Seq(openVinoCPU) +// else + Seq(openVinoCPU) + lazy val mavenProps = settingKey[Unit]("workaround for Maven properties") lazy val root = (project in file(".")) @@ -192,6 +201,7 @@ lazy val root = (project in file(".")) utilDependencies ++ tensorflowDependencies ++ onnxDependencies ++ + openVinoDependencies ++ typedDependencyParserDependencies, // TODO potentially improve this? mavenProps := { diff --git a/project/Dependencies.scala b/project/Dependencies.scala index d659d41b2618c8..b8d3fd6d4aaf5f 100644 --- a/project/Dependencies.scala +++ b/project/Dependencies.scala @@ -117,6 +117,9 @@ object Dependencies { val onnxCPU = "com.microsoft.onnxruntime" % "onnxruntime" % onnxRuntimeVersion val onnxGPU = "com.microsoft.onnxruntime" % "onnxruntime_gpu" % onnxRuntimeVersion + val openVinoRuntimeVersion = "0.1.0-rc1" + val openVinoCPU = "com.johnsnowlabs.nlp" % "jsl-openvino-cpu_2.12" % openVinoRuntimeVersion + val gcpStorageVersion = "2.20.1" val gcpStorage = "com.google.cloud" % "google-cloud-storage" % gcpStorageVersion val azureIdentityVersion = "1.9.1"