{"action":"created","issue":{"url":"https://api.github.com/repos/keras-team/keras/issues/1538","repository_url":"https://api.github.com/repos/keras-team/keras","labels_url":"https://api.github.com/repos/keras-team/keras/issues/1538/labels{/name}","comments_url":"https://api.github.com/repos/keras-team/keras/issues/1538/comments","events_url":"https://api.github.com/repos/keras-team/keras/issues/1538/events","html_url":"https://github.com/keras-team/keras/issues/1538","id":128313737,"number":1538,"title":"Limit the resource usage for tensorflow backend","user":{"login":"fabiofumarola","id":1550672,"avatar_url":"https://avatars2.githubusercontent.com/u/1550672?v=4","gravatar_id":"","url":"https://api.github.com/users/fabiofumarola","html_url":"https://github.com/fabiofumarola","followers_url":"https://api.github.com/users/fabiofumarola/followers","following_url":"https://api.github.com/users/fabiofumarola/following{/other_user}","gists_url":"https://api.github.com/users/fabiofumarola/gists{/gist_id}","starred_url":"https://api.github.com/users/fabiofumarola/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fabiofumarola/subscriptions","organizations_url":"https://api.github.com/users/fabiofumarola/orgs","repos_url":"https://api.github.com/users/fabiofumarola/repos","events_url":"https://api.github.com/users/fabiofumarola/events{/privacy}","received_events_url":"https://api.github.com/users/fabiofumarola/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":15,"created_at":"2016-01-23T08:17:57Z","updated_at":"2018-05-29T15:05:29Z","closed_at":null,"author_association":"NONE","body":"When I use tensorflow as backend I got an high memory usage on my GPUs. I check that is possible to limit memory usage by using `tf.ConfigProto` \n\n``` bash\nconfig = tf.ConfigProto(\n    gpu_options = tf.GPUOptions(per_process_gpu_memory_fraction=0.5),\n    device_count = {'GPU': 1}\n)\n\nsess_1 = tf.Session(graph=graph_1, config=config)\nsess_2 = tf.Session(graph=graph_2, config=config)\n```\n\nwould it be useful to add this option in keras? if yes where is the best place to do it without corrupt keras design principles?\n"},"comment":{"url":"https://api.github.com/repos/keras-team/keras/issues/comments/392811229","html_url":"https://github.com/keras-team/keras/issues/1538#issuecomment-392811229","issue_url":"https://api.github.com/repos/keras-team/keras/issues/1538","id":392811229,"user":{"login":"sebma","id":4569306,"avatar_url":"https://avatars1.githubusercontent.com/u/4569306?v=4","gravatar_id":"","url":"https://api.github.com/users/sebma","html_url":"https://github.com/sebma","followers_url":"https://api.github.com/users/sebma/followers","following_url":"https://api.github.com/users/sebma/following{/other_user}","gists_url":"https://api.github.com/users/sebma/gists{/gist_id}","starred_url":"https://api.github.com/users/sebma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sebma/subscriptions","organizations_url":"https://api.github.com/users/sebma/orgs","repos_url":"https://api.github.com/users/sebma/repos","events_url":"https://api.github.com/users/sebma/events{/privacy}","received_events_url":"https://api.github.com/users/sebma/received_events","type":"User","site_admin":false},"created_at":"2018-05-29T15:05:28Z","updated_at":"2018-05-29T15:05:28Z","author_association":"NONE","body":"@zhangkao Hi,\r\nIn your [comment](https://github.com/keras-team/keras/issues/1538#issuecomment-316932833), is this `config.gpu_options.visible_device_list = \"0\"` necessary ?"}}
{"actor":{"display_login":"sebma"}}