{"action":"created","issue":{"url":"https://api.github.com/repos/keras-team/keras/issues/9389","repository_url":"https://api.github.com/repos/keras-team/keras","labels_url":"https://api.github.com/repos/keras-team/keras/issues/9389/labels{/name}","comments_url":"https://api.github.com/repos/keras-team/keras/issues/9389/comments","events_url":"https://api.github.com/repos/keras-team/keras/issues/9389/events","html_url":"https://github.com/keras-team/keras/issues/9389","id":297251111,"number":9389,"title":"Conv3D with padding='same' creates output shape error","user":{"login":"kingjr","id":4881164,"avatar_url":"https://avatars2.githubusercontent.com/u/4881164?v=4","gravatar_id":"","url":"https://api.github.com/users/kingjr","html_url":"https://github.com/kingjr","followers_url":"https://api.github.com/users/kingjr/followers","following_url":"https://api.github.com/users/kingjr/following{/other_user}","gists_url":"https://api.github.com/users/kingjr/gists{/gist_id}","starred_url":"https://api.github.com/users/kingjr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kingjr/subscriptions","organizations_url":"https://api.github.com/users/kingjr/orgs","repos_url":"https://api.github.com/users/kingjr/repos","events_url":"https://api.github.com/users/kingjr/events{/privacy}","received_events_url":"https://api.github.com/users/kingjr/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-02-14T21:27:27Z","updated_at":"2018-02-14T23:36:48Z","closed_at":"2018-02-14T23:02:08Z","author_association":"NONE","body":"Hi team, \r\n\r\nI'm encountering an error when adding a Dense layer on top of a Conv3D + MaxPool3D when `padding='same'`.\r\n\r\nThe error \r\n* is not generated during the creation of the model, but only when it is executed.\r\n* disappears if either MaxPooling3D or Conv3D is removed.\r\n* is present if `padding='same'` is used in either `MaxPooling3D` or `Conv3D`\r\n\r\n\r\n```python\r\nfrom keras.models import Sequential\r\nfrom keras.layers import Conv3D, MaxPooling3D, Dense\r\n\r\nshape = (5, 64, 64, 3)\r\nx = np.zeros(np.r_[1, shape]) # input\r\n\r\nfor padding in ('valid', 'same'):\r\n    model = Sequential()\r\n    model.add(MaxPooling3D((1, 1, 1), padding=padding, input_shape=shape))\r\n    model.add(Conv3D(128, 3, padding=padding))\r\n    model.add(Dense(8))\r\n    print(padding, model.predict(x).shape)\r\n```\r\n\r\nDo you what should be done?\r\n\r\n(I'm using Keras 2.1.3)"},"comment":{"url":"https://api.github.com/repos/keras-team/keras/issues/comments/365781042","html_url":"https://github.com/keras-team/keras/issues/9389#issuecomment-365781042","issue_url":"https://api.github.com/repos/keras-team/keras/issues/9389","id":365781042,"user":{"login":"kingjr","id":4881164,"avatar_url":"https://avatars2.githubusercontent.com/u/4881164?v=4","gravatar_id":"","url":"https://api.github.com/users/kingjr","html_url":"https://github.com/kingjr","followers_url":"https://api.github.com/users/kingjr/followers","following_url":"https://api.github.com/users/kingjr/following{/other_user}","gists_url":"https://api.github.com/users/kingjr/gists{/gist_id}","starred_url":"https://api.github.com/users/kingjr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kingjr/subscriptions","organizations_url":"https://api.github.com/users/kingjr/orgs","repos_url":"https://api.github.com/users/kingjr/repos","events_url":"https://api.github.com/users/kingjr/events{/privacy}","received_events_url":"https://api.github.com/users/kingjr/received_events","type":"User","site_admin":false},"created_at":"2018-02-14T23:36:48Z","updated_at":"2018-02-14T23:36:48Z","author_association":"NONE","body":"Thank @fchollet . Specifying `data_format` and/or changing `keras.json` didn't work, but upgrading tensorflow did."}}
{"actor":{"display_login":"kingjr"}}