Skip to content

Commit

Permalink
Add openvino dependency (#14255)
Browse files Browse the repository at this point in the history
  • Loading branch information
DevinTDHa authored May 21, 2024
1 parent 5967577 commit fcd4e9c
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
14 changes: 12 additions & 2 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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("."))
Expand All @@ -192,6 +201,7 @@ lazy val root = (project in file("."))
utilDependencies ++
tensorflowDependencies ++
onnxDependencies ++
openVinoDependencies ++
typedDependencyParserDependencies,
// TODO potentially improve this?
mavenProps := {
Expand Down
3 changes: 3 additions & 0 deletions project/Dependencies.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit fcd4e9c

Please sign in to comment.