TensorFlow.jl icon indicating copy to clipboard operation
TensorFlow.jl copied to clipboard

TF version 1.14.0 (almost works locally)

Open PallHaraldsson opened this issue 5 years ago • 11 comments

PallHaraldsson avatar Aug 14 '19 17:08 PallHaraldsson

I just noticed there was an upgrade. Possibly some more is needed, since this is a major(?) upgrade, why I didn't put in "skip ci". I'm just going by last change I saw, that was actually a (temporary) downgrade.

I don't need this myself.

OCaml wrapper is up to date, and I see it took a larger jump (and seemingly no changes needed, only one what seems to be for OCaml not TF):

https://github.com/LaurentMazare/tensorflow-ocaml/commit/e195f91397d45151efb992de6a7d94b35d0d8272

PallHaraldsson avatar Aug 14 '19 17:08 PallHaraldsson

Thanks! Looks like CI failed, though - maybe something with the packaging of the upstream TensorFlow binaries has changed.

malmaud avatar Aug 15 '19 19:08 malmaud

"maybe something with the packaging of the upstream TensorFlow binaries has changed."

To compare I looked at commits for OCaml (I would have thought less used the Julia). there only the download links in the README where updated; but you have to get the build system and compile yourself.

It seems they use C++ [API] (I know you do not; as other recommended), while not obvious where (I see C++ only in "Use TensorFlow C++ based gradient computation"):

https://github.com/LaurentMazare/tensorflow-ocaml/commit/12730d873751e2f8c3908976d22f0f8754cfaf6a

PallHaraldsson avatar Aug 16 '19 16:08 PallHaraldsson

Less urgent than #513

PallHaraldsson avatar Oct 13 '19 17:10 PallHaraldsson

Any update? Looks like the CI failed because it cannot find the shared library.

chengchingwen avatar Dec 29 '19 06:12 chengchingwen

Any update?

Not from me (should be simple though, or to support 1.15.2), see full answer at #513

PallHaraldsson avatar Feb 20 '20 12:02 PallHaraldsson

I do also expect 1.15.2 to fail. Just changed PR to check.

PallHaraldsson avatar Feb 20 '20 12:02 PallHaraldsson

Hi, @oxinabox (and @chengchingwen) is 12.x really needed or 14.0 (or something newer), what I seemingly got to work, ok for you?

I got it to work locally, with:

(v1.3) pkg> dev TensorFlow

shell> pip3 install --upgrade tensorflow

[only gets 1.14.0]

(v1.3) pkg> build TensorFlow

1.14 (and 1.15.2) do not work here on GitHub, as the library is missing, which I found out how to fix, but only locally, and so far not newer than 1.14.0.

PallHaraldsson avatar Mar 02 '20 16:03 PallHaraldsson

pip3 install -U pip

seemingly works (a TF 2 requirement to have pip >19) for conda to download TF 2.1.0

however, in the code this link gets generated and fails https://storage.googleapis.com/tensorflow/libtensorflow/libtensorflow-cpu-linux-x86_64-2.1.0.tar.gz

neither does this one work https://storage.googleapis.com/tensorflow/libtensorflow/libtensorflow-cpu-linux-x86_64-1.15.2.tar.gz

But slightly older I seemingly get to build as it downloads: https://storage.googleapis.com/tensorflow/libtensorflow/libtensorflow-cpu-linux-x86_64-1.15.0.tar.gz

PallHaraldsson avatar Mar 02 '20 17:03 PallHaraldsson

Hi, @oxinabox (and @chengchingwen) is 12.x really needed or 14.0 (or something newer), what I seemingly got to work, ok for you?

1.14.0 is preferred over 1.12.x if you can get it to work. But it needs to pass CI. I do not at present have time to dig into why it might not pass CI.

oxinabox avatar Mar 02 '20 17:03 oxinabox

I found out why only the build.jl worked. Before there was only a .so file of each, now it's a links (and links to links) of both:

/home/pharaldsson_sym/.julia/dev/TensorFlow/deps/downloads/lib/libtensorflow_framework.so /home/pharaldsson_sym/.julia/dev/TensorFlow/deps/downloads/lib/libtensorflow_framework.so.1 /home/pharaldsson_sym/.julia/dev/TensorFlow/deps/downloads/lib/libtensorflow_framework.so.1.14.0 /home/pharaldsson_sym/.julia/dev/TensorFlow/deps/downloads/lib/libtensorflow_framework.so.1.15.0 /home/pharaldsson_sym/.julia/dev/TensorFlow/deps/downloads/lib/libtensorflow.so /home/pharaldsson_sym/.julia/dev/TensorFlow/deps/downloads/lib/libtensorflow.so.1 /home/pharaldsson_sym/.julia/dev/TensorFlow/deps/downloads/lib/libtensorflow.so.1.14.0 /home/pharaldsson_sym/.julia/dev/TensorFlow/deps/downloads/lib/libtensorflow.so.1.15.0

PallHaraldsson avatar Mar 02 '20 18:03 PallHaraldsson