-
Notifications
You must be signed in to change notification settings - Fork 95
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
org.platanios.tensorflow.jni.NotFoundException #190
Comments
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 |
@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.
The text was updated successfully, but these errors were encountered: