{"action":"opened","issue":{"url":"https://api.github.com/repos/fchollet/keras/issues/2280","repository_url":"https://api.github.com/repos/fchollet/keras","labels_url":"https://api.github.com/repos/fchollet/keras/issues/2280/labels{/name}","comments_url":"https://api.github.com/repos/fchollet/keras/issues/2280/comments","events_url":"https://api.github.com/repos/fchollet/keras/issues/2280/events","html_url":"https://github.com/fchollet/keras/issues/2280","id":147792887,"number":2280,"title":"No reproducible using tensorflow backend","user":{"login":"zhuoqiang","id":639099,"avatar_url":"https://avatars.githubusercontent.com/u/639099?v=3","gravatar_id":"","url":"https://api.github.com/users/zhuoqiang","html_url":"https://github.com/zhuoqiang","followers_url":"https://api.github.com/users/zhuoqiang/followers","following_url":"https://api.github.com/users/zhuoqiang/following{/other_user}","gists_url":"https://api.github.com/users/zhuoqiang/gists{/gist_id}","starred_url":"https://api.github.com/users/zhuoqiang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zhuoqiang/subscriptions","organizations_url":"https://api.github.com/users/zhuoqiang/orgs","repos_url":"https://api.github.com/users/zhuoqiang/repos","events_url":"https://api.github.com/users/zhuoqiang/events{/privacy}","received_events_url":"https://api.github.com/users/zhuoqiang/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-04-12T15:46:05Z","updated_at":"2016-04-12T15:46:05Z","closed_at":null,"body":"with theano backend (CPU or GPU without cnDNN), I could train reproducible model by\r\n\r\n```py\r\nfixed_seed_num = 1234\r\nnunpy.random.seed(fixed_seed_num)\r\nrandom.seed(fixed_seed_num)\r\n```\r\n\r\nWhile in pure tensorflow without keras wrapper, it could also be reproducible by\r\n\r\n```py\r\ntersorflow.set_random_seed(fixed_seed_num)\r\n```\r\nDon't know why, but in Keras + tensorflow backend, non of the above could give reproducible training model. \r\n\r\nEnvironment:\r\n\r\n- Keras: v0.3.2\r\n- tensorflow: v0.7.1\r\n- Macbook OS X v10.11.4\r\n- tensorflow is using CPU\r\n\r\n"}}