Open shilkazx opened 3 years ago
I experience exactly the same issue. I run Archlinux and tried tensorflow-opt package too. I've also built tensorflow from source to the same effect.
@akopich, @shilkazx if you can test with Ammonite, you can try below simple script.
test.sc :
// scala 2.13.4
interp.load.ivy(
("org.platanios" %% "tensorflow" % "0.5.10").withClassifier("linux")
)
import $ivy.`org.platanios::tensorflow:0.5.10`
import org.platanios.tensorflow.api._
val t1 = Tensor(1.2, 4.5)
println(t1.summarize())
It should print:
Tensor[Double, [2]]
[1.2, 4.5]
It should also work with SBT like this:
lazy val root = (project in file("."))
.settings(
name := "tensorflow-ann",
libraryDependencies ++= Seq(
"org.platanios" %% "tensorflow" % "0.5.10" classifier "linux"
)
)
@novakov-alexey thank you. I had the classifier "linux"
part missing.
@novakov-alexey but wait, doesn't it just pull the generic binaries from the repo? I removed the tensorflow-related packages and the code still works.
@akopich welcome. Platform specific jar from Maven central contains dyn libs that are eventually used by JVM+JNI. I think @eaplatanios can clarify this moment better than I.
Platform: Archlinux x86_64, with Arch's official tensorflow-opt 2.3.1-7 package installed. Scala version: 2.12.12
After
import org.platanios.tensorflow.api._
, I just try the simple snippet:val t1 = Tensor(1.2, 4.5)
then scala throw the following error:Btw. I also run a python version tensorflow sample on the same environment, everything is fine. I've already done some google work, but found nothing helpful. Please help me. Thanks a million.