{"action":"created","issue":{"url":"https://api.github.com/repos/keras-team/keras/issues/9621","repository_url":"https://api.github.com/repos/keras-team/keras","labels_url":"https://api.github.com/repos/keras-team/keras/issues/9621/labels{/name}","comments_url":"https://api.github.com/repos/keras-team/keras/issues/9621/comments","events_url":"https://api.github.com/repos/keras-team/keras/issues/9621/events","html_url":"https://github.com/keras-team/keras/issues/9621","id":304219320,"node_id":"MDU6SXNzdWUzMDQyMTkzMjA=","number":9621,"title":"TypeError: softmax() got an unexpected keyword argument 'axis'","user":{"login":"Weixing-Zhang","id":10710457,"node_id":"MDQ6VXNlcjEwNzEwNDU3","avatar_url":"https://avatars1.githubusercontent.com/u/10710457?v=4","gravatar_id":"","url":"https://api.github.com/users/Weixing-Zhang","html_url":"https://github.com/Weixing-Zhang","followers_url":"https://api.github.com/users/Weixing-Zhang/followers","following_url":"https://api.github.com/users/Weixing-Zhang/following{/other_user}","gists_url":"https://api.github.com/users/Weixing-Zhang/gists{/gist_id}","starred_url":"https://api.github.com/users/Weixing-Zhang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Weixing-Zhang/subscriptions","organizations_url":"https://api.github.com/users/Weixing-Zhang/orgs","repos_url":"https://api.github.com/users/Weixing-Zhang/repos","events_url":"https://api.github.com/users/Weixing-Zhang/events{/privacy}","received_events_url":"https://api.github.com/users/Weixing-Zhang/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":42,"created_at":"2018-03-12T02:03:12Z","updated_at":"2018-12-29T03:17:47Z","closed_at":"2018-03-13T19:02:57Z","author_association":"NONE","body":"I ran my code ran without any error back to November 2017. This error happened after updated to 2.1.5. Please help. Thank you.\r\n\r\n`---------------------------------------------------------------------------\r\nTypeError                                 Traceback (most recent call last)\r\n<ipython-input-8-15af8cf9c234> in <module>()\r\n     89 model.add(Dropout(0.5))\r\n     90 model.add(Dense(num_classes))\r\n---> 91 model.add(Activation('softmax'))\r\n     92 \r\n     93 # -----------------------------------------------------------\r\n\r\n/usr/local/lib/python2.7/dist-packages/keras/models.pyc in add(self, layer)\r\n    490                           output_shapes=[self.outputs[0]._keras_shape])\r\n    491         else:\r\n--> 492             output_tensor = layer(self.outputs[0])\r\n    493             if isinstance(output_tensor, list):\r\n    494                 raise TypeError('All layers in a Sequential model '\r\n\r\n/usr/local/lib/python2.7/dist-packages/keras/engine/topology.pyc in __call__(self, inputs, **kwargs)\r\n    617 \r\n    618             # Actually call the layer, collecting output(s), mask(s), and shape(s).\r\n--> 619             output = self.call(inputs, **kwargs)\r\n    620             output_mask = self.compute_mask(inputs, previous_mask)\r\n    621 \r\n\r\n/usr/local/lib/python2.7/dist-packages/keras/layers/core.pyc in call(self, inputs)\r\n    301 \r\n    302     def call(self, inputs):\r\n--> 303         return self.activation(inputs)\r\n    304 \r\n    305     def get_config(self):\r\n\r\n/usr/local/lib/python2.7/dist-packages/keras/activations.pyc in softmax(x, axis)\r\n     27     ndim = K.ndim(x)\r\n     28     if ndim == 2:\r\n---> 29         return K.softmax(x)\r\n     30     elif ndim > 2:\r\n     31         e = K.exp(x - K.max(x, axis=axis, keepdims=True))\r\n\r\n/usr/local/lib/python2.7/dist-packages/keras/backend/tensorflow_backend.pyc in softmax(x, axis)\r\n   2957         A tensor.\r\n   2958     \"\"\"\r\n-> 2959     return tf.nn.softmax(x, axis=axis)\r\n   2960 \r\n   2961 \r\n\r\nTypeError: softmax() got an unexpected keyword argument 'axis'`"},"comment":{"url":"https://api.github.com/repos/keras-team/keras/issues/comments/450461264","html_url":"https://github.com/keras-team/keras/issues/9621#issuecomment-450461264","issue_url":"https://api.github.com/repos/keras-team/keras/issues/9621","id":450461264,"node_id":"MDEyOklzc3VlQ29tbWVudDQ1MDQ2MTI2NA==","user":{"login":"hefv57","id":28542653,"node_id":"MDQ6VXNlcjI4NTQyNjUz","avatar_url":"https://avatars2.githubusercontent.com/u/28542653?v=4","gravatar_id":"","url":"https://api.github.com/users/hefv57","html_url":"https://github.com/hefv57","followers_url":"https://api.github.com/users/hefv57/followers","following_url":"https://api.github.com/users/hefv57/following{/other_user}","gists_url":"https://api.github.com/users/hefv57/gists{/gist_id}","starred_url":"https://api.github.com/users/hefv57/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hefv57/subscriptions","organizations_url":"https://api.github.com/users/hefv57/orgs","repos_url":"https://api.github.com/users/hefv57/repos","events_url":"https://api.github.com/users/hefv57/events{/privacy}","received_events_url":"https://api.github.com/users/hefv57/received_events","type":"User","site_admin":false},"created_at":"2018-12-29T03:17:47Z","updated_at":"2018-12-29T03:17:47Z","author_association":"NONE","body":"liliarizona's suggestion worked for me (delete: axis=axis)"}}
{"actor":{"display_login":"hefv57"}}