-
-
Notifications
You must be signed in to change notification settings - Fork 15.5k
keras: 1.0.3 -> 1.1.1 #20798
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
keras: 1.0.3 -> 1.1.1 #20798
Conversation
The idiomatic solution is to simply pass the variant you want (it only "pulls in" the non-GPU variant because that's the one that happens to be bound to that name). |
sed -i -re "s/(ctx.bin_id\[\-2:\])/int(\1)/g" dnn.py | ||
popd | ||
''; | ||
# patchPhase = '' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove this if it is no longer used.
@@ -23341,7 +23341,7 @@ in { | |||
}; | |||
}; | |||
|
|||
Theano = buildPythonPackage rec { | |||
theano = buildPythonPackage rec { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changing bound names like this can be annoying, consider either not doing it or adding an alias.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Within python-packages.nix
we also aim to stick to the exact name upstream uses - which is Theano with a capital T.
]; | ||
|
||
meta = { | ||
description = "Deep Learning library for Theano and TensorFlow"; | ||
description = "Keras is a high-level neural networks library for Theano and TensorFlow"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove the package name from the description
, per the guidelines.
mentionbot failed to mention keras maintainer @NikolaMandic, they might be able to provide some more substantive comments on this. |
well it seems @tindzk version bumped keras and it floats his boat |
Note 07dcc4f |
Thanks for the review! I have rebased the commit and implemented your suggestions. @artuuge: Is it safe to remove the sed calls? |
This has been open for too long. What is the status of this? Some of this has been merged already if I am correct. At least, we have a
|
The only remaining issue is to clarify the |
Is anyone interested in taking over the maintenance of this package? |
I've upgraded Keras in master but I don't know whether it works. There are some other changes in this commit here as well, but they should have been split into separate commits and so for now I've ignored them. |
Thanks a lot! |
Motivation for this change
This updates Keras and its dependencies to support the latest Python and CUDA versions.
As of now, only the TensorFlow backend can be used (requires #20794). When using the Theano backend, it crashes with the following message:
Trying to set the missing paths, leads to a segmentation fault:
Would it be possible to create a "virtual" package
theano
with a boolean propertygpuSupport
? Right now, Keras pulls in the Keras package without GPU support.I couldn't check whether the changes from
patchPhase
are still needed to support Python 3.Things done
(nix.useSandbox on NixOS,
or option
build-use-sandbox
innix.conf
on non-NixOS)
nix-shell -p nox --run "nox-review wip"
./result/bin/
)