Skip to content
This repository has been archived by the owner on Nov 8, 2018. It is now read-only.

TypeError: softmax() got an unexpected keyword argument 'axis' #66

Open
nadamaguid opened this issue Apr 25, 2018 · 0 comments
Open

TypeError: softmax() got an unexpected keyword argument 'axis' #66

nadamaguid opened this issue Apr 25, 2018 · 0 comments

Comments

@nadamaguid
Copy link

I started getting this error suddently. Tensorflow has to be downgraded to 1.4 for the mnist.py example to work and it has been working fine. Suddenly, upon installing dist-keras recently I receive the following error:
Traceback (most recent call last): File "/home/hadoop/trial1200.py", line 277, in <module> model2.add(Activation('softmax')) File "/usr/local/lib64/python2.7/site-packages/keras/models.py", line 522, in add output_tensor = layer(self.outputs[0]) File "/usr/local/lib64/python2.7/site-packages/keras/engine/topology.py", line 619, in __call__ output = self.call(inputs, **kwargs) File "/usr/local/lib64/python2.7/site-packages/keras/layers/core.py", line 304, in call return self.activation(inputs) File "/usr/local/lib64/python2.7/site-packages/keras/activations.py", line 29, in softmax return K.softmax(x) File "/usr/local/lib64/python2.7/site-packages/keras/backend/tensorflow_backend.py", line 2963, in softmax return tf.nn.softmax(x, axis=axis) TypeError: softmax() got an unexpected keyword argument 'axis'
I double checked if using the --upgrade dist-keras command has installed anything differently and I noticed that the keras version was update from 2.1.5 to 2.1.6. Downgrading it back to 2.1.5 still gives the same error. Also if the version of tensorflow is upgraded, the transofrm function no longer works.
Is there a specific set up that needs to be done?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant