{"action":"closed","issue":{"url":"https://api.github.com/repos/fchollet/keras/issues/4150","repository_url":"https://api.github.com/repos/fchollet/keras","labels_url":"https://api.github.com/repos/fchollet/keras/issues/4150/labels{/name}","comments_url":"https://api.github.com/repos/fchollet/keras/issues/4150/comments","events_url":"https://api.github.com/repos/fchollet/keras/issues/4150/events","html_url":"https://github.com/fchollet/keras/issues/4150","id":184662254,"number":4150,"title":"[Feature]Input shape api inconsistency with Tensorflow Backend","user":{"login":"manugarri","id":3670355,"avatar_url":"https://avatars.githubusercontent.com/u/3670355?v=3","gravatar_id":"","url":"https://api.github.com/users/manugarri","html_url":"https://github.com/manugarri","followers_url":"https://api.github.com/users/manugarri/followers","following_url":"https://api.github.com/users/manugarri/following{/other_user}","gists_url":"https://api.github.com/users/manugarri/gists{/gist_id}","starred_url":"https://api.github.com/users/manugarri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/manugarri/subscriptions","organizations_url":"https://api.github.com/users/manugarri/orgs","repos_url":"https://api.github.com/users/manugarri/repos","events_url":"https://api.github.com/users/manugarri/events{/privacy}","received_events_url":"https://api.github.com/users/manugarri/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-10-22T23:56:03Z","updated_at":"2016-10-30T19:06:11Z","closed_at":"2016-10-30T19:06:11Z","body":"When using tensorflow as the backend, there is an inconsistent api format regarding tensor shape.\r\n\r\nFor example, If i want an input placeholder tensor of shape, `[None, 10]`\r\n\r\nIn tensorflow I instantiate it as:\r\n\r\n`tf.placeholder(tf.float32,shape=[None, 10])`\r\n`In []: <tf.Tensor 'Placeholder_4:0' shape=(?, 10) dtype=float32>`\r\n\r\nHowever if I use the same vector as a shape vector in Keras `Input` tensor:\r\n\r\n`Input(shape=[None, 10])`\r\n`<tf.Tensor 'input_3:0' shape=(?, ?, 10) dtype=float32>`\r\n\r\nSi it adds an extra dimension. \r\n\r\nIs this the desired behaviour? Not sure if this should be a feature request or a bug to be honest."}}
{"actor":{"display_login":"manugarri"}}