Conversation
fix permissions
|
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). View this failed invocation of the CLA check for more information. For the most up to date status, view the checks section at the bottom of the pull request. |
| cp -r $src/* . | ||
|
|
||
| chmod -R +rwx ./third_party | ||
| cp -r ${tensorflowSubModule} ./third_party/tensorflow |
There was a problem hiding this comment.
While I don't see a good option to get Nix accepting the submodules, it would be nice to use prev.libtensorflow.src instead tensorflowSubModule, so that the correct version also used in nixpkgs is provided. libtensorflow-2.9.1 from current nixpkgs gives compilation errors, however.
There was a problem hiding this comment.
I have no opinion about this as I don't understand Nix enough and we have no CI around that. Fix it to your liking?
|
@sheepforce While I support this work, note that the Tensorflow Haskell bindings have had regular Nix packages for a long time. The current version has a blocking issue though: |
Yes, I am aware :) However, it is marked broken since a long time and does not actually build. I saw your PR attempting to fix it NixOS/nixpkgs#119411
Could this also be caused by the Tensorflow version mismatch between nixpkgs and the tensorflow submodule here with |
That's incorrect. It refers to github revision 568c9b6, which is pretty close to HEAD. Updating to HEAD is "just" a matter of resolving the above PR.
It's not out of the question, and that's what I looked for, too. However in testing I was pretty careful making sure the versions match. |
You are completely right, saw it in the PR. I've got confused by the version in nixpkgs being labelled 0.1.0.0 |
|
@sheepforce The |
Currently the Haskell bindings are a little bit difficult to access with Nix. This is some work to build the tensorflow bindings with Nix and provide an overlay via a Nix flake that allows to use the Haskell packages of this repo via an overlay in other Nix projects.
shell.nixdefault.nixIn the tensorflow-core-ops build I am getting:
and I assume this is caused by having tensorflow-2.9.1 in nixpkgs but using some 2.3ish version as the submodule from which
c_api.his imported.Using tensorflow-2.9.1 as a submodule makes things worse, unfortunately.