samjabrahams / tensorflow-on-raspberry-pi

TensorFlow for Raspberry Pi
Other
2.24k stars 496 forks source link

softmax() got an unexpected keyword argument 'axis' #157

Open hananabilabd opened 6 years ago

hananabilabd commented 6 years ago

Describe the Issue

I've installed your TensorFlow version 1.1.0 with pip and keras 2.2

 x=Dense(4,activation='softmax',kernel_initializer=glorot_uniform(seed=0))(x)
  File "/usr/local/lib/python2.7/dist-packages/keras/engine/topology.py", line 619, in __call__
    output = self.call(inputs, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/keras/layers/core.py", line 881, in call
    output = self.activation(output)
  File "/usr/local/lib/python2.7/dist-packages/keras/activations.py", line 29, in softmax
    return K.softmax(x)
  File "/usr/local/lib/python2.7/dist-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'

Steps to Reproduce

Hardware/Software Info

Please provide the following information about your Raspberry Pi setup:

Relevant Console Output/Logs