{"action":"created","issue":{"url":"https://api.github.com/repos/tensorflow/tensorflow/issues/35298","repository_url":"https://api.github.com/repos/tensorflow/tensorflow","labels_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/35298/labels{/name}","comments_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/35298/comments","events_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/35298/events","html_url":"https://github.com/tensorflow/tensorflow/issues/35298","id":540811896,"node_id":"MDU6SXNzdWU1NDA4MTE4OTY=","number":35298,"title":"OneDeviceStrategy allocates memory on two GPUs","user":{"login":"olk","id":914496,"node_id":"MDQ6VXNlcjkxNDQ5Ng==","avatar_url":"https://avatars3.githubusercontent.com/u/914496?v=4","gravatar_id":"","url":"https://api.github.com/users/olk","html_url":"https://github.com/olk","followers_url":"https://api.github.com/users/olk/followers","following_url":"https://api.github.com/users/olk/following{/other_user}","gists_url":"https://api.github.com/users/olk/gists{/gist_id}","starred_url":"https://api.github.com/users/olk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/olk/subscriptions","organizations_url":"https://api.github.com/users/olk/orgs","repos_url":"https://api.github.com/users/olk/repos","events_url":"https://api.github.com/users/olk/events{/privacy}","received_events_url":"https://api.github.com/users/olk/received_events","type":"User","site_admin":false},"labels":[{"id":1605791310,"node_id":"MDU6TGFiZWwxNjA1NzkxMzEw","url":"https://api.github.com/repos/tensorflow/tensorflow/labels/TF%202.1","name":"TF 2.1","color":"c2e0c6","default":false,"description":"for tracking issues in 2.1 release"},{"id":996845227,"node_id":"MDU6TGFiZWw5OTY4NDUyMjc=","url":"https://api.github.com/repos/tensorflow/tensorflow/labels/comp:dist-strat","name":"comp:dist-strat","color":"0052cc","default":false,"description":"Distribution Strategy related issues"},{"id":473172988,"node_id":"MDU6TGFiZWw0NzMxNzI5ODg=","url":"https://api.github.com/repos/tensorflow/tensorflow/labels/type:bug","name":"type:bug","color":"159b2e","default":false,"description":""}],"state":"closed","locked":false,"assignee":{"login":"ymodak","id":42785357,"node_id":"MDQ6VXNlcjQyNzg1MzU3","avatar_url":"https://avatars1.githubusercontent.com/u/42785357?v=4","gravatar_id":"","url":"https://api.github.com/users/ymodak","html_url":"https://github.com/ymodak","followers_url":"https://api.github.com/users/ymodak/followers","following_url":"https://api.github.com/users/ymodak/following{/other_user}","gists_url":"https://api.github.com/users/ymodak/gists{/gist_id}","starred_url":"https://api.github.com/users/ymodak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ymodak/subscriptions","organizations_url":"https://api.github.com/users/ymodak/orgs","repos_url":"https://api.github.com/users/ymodak/repos","events_url":"https://api.github.com/users/ymodak/events{/privacy}","received_events_url":"https://api.github.com/users/ymodak/received_events","type":"User","site_admin":false},"assignees":[{"login":"ymodak","id":42785357,"node_id":"MDQ6VXNlcjQyNzg1MzU3","avatar_url":"https://avatars1.githubusercontent.com/u/42785357?v=4","gravatar_id":"","url":"https://api.github.com/users/ymodak","html_url":"https://github.com/ymodak","followers_url":"https://api.github.com/users/ymodak/followers","following_url":"https://api.github.com/users/ymodak/following{/other_user}","gists_url":"https://api.github.com/users/ymodak/gists{/gist_id}","starred_url":"https://api.github.com/users/ymodak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ymodak/subscriptions","organizations_url":"https://api.github.com/users/ymodak/orgs","repos_url":"https://api.github.com/users/ymodak/repos","events_url":"https://api.github.com/users/ymodak/events{/privacy}","received_events_url":"https://api.github.com/users/ymodak/received_events","type":"User","site_admin":false}],"milestone":null,"comments":3,"created_at":"2019-12-20T07:04:15Z","updated_at":"2019-12-26T23:51:54Z","closed_at":"2019-12-26T23:51:52Z","author_association":"NONE","body":"**System information**\r\n- OS Platform and Distribution: Arch Linux, 5.4.2-arch1-1-ARCH\r\n- TensorFlow installed from: binary\r\n- TensorFlow version: 2.1.0rc1\r\n- Keras version: 2.2.4-tf\r\n- Python version: 3.8\r\n- GPU model and memory: 2x GTX 1080 Ti 11GB\"`\r\n\r\n**Describe the current behavior**\r\nOneDeviceStrategy is set to use GPU0 but allocates full memory at GPU0 and GPU1 too.\r\nOn both GPUs 11GB are allocated.\r\nUsing not Strategy (simple plain TF code) - the memory is allocated only at GPU0.\r\n\r\n**Describe the expected behavior**\r\nOneDeviceStrategy is set to use GPU0 allocates memory only at GPU0 as the code does if OneDeviceStrategy is not used."},"comment":{"url":"https://api.github.com/repos/tensorflow/tensorflow/issues/comments/569151717","html_url":"https://github.com/tensorflow/tensorflow/issues/35298#issuecomment-569151717","issue_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/35298","id":569151717,"node_id":"MDEyOklzc3VlQ29tbWVudDU2OTE1MTcxNw==","user":{"login":"tensorflow-bot[bot]","id":48739277,"node_id":"MDM6Qm90NDg3MzkyNzc=","avatar_url":"https://avatars0.githubusercontent.com/u/1913207?v=4","gravatar_id":"","url":"https://api.github.com/users/tensorflow-bot%5Bbot%5D","html_url":"https://github.com/apps/tensorflow-bot","followers_url":"https://api.github.com/users/tensorflow-bot%5Bbot%5D/followers","following_url":"https://api.github.com/users/tensorflow-bot%5Bbot%5D/following{/other_user}","gists_url":"https://api.github.com/users/tensorflow-bot%5Bbot%5D/gists{/gist_id}","starred_url":"https://api.github.com/users/tensorflow-bot%5Bbot%5D/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tensorflow-bot%5Bbot%5D/subscriptions","organizations_url":"https://api.github.com/users/tensorflow-bot%5Bbot%5D/orgs","repos_url":"https://api.github.com/users/tensorflow-bot%5Bbot%5D/repos","events_url":"https://api.github.com/users/tensorflow-bot%5Bbot%5D/events{/privacy}","received_events_url":"https://api.github.com/users/tensorflow-bot%5Bbot%5D/received_events","type":"Bot","site_admin":false},"created_at":"2019-12-26T23:51:54Z","updated_at":"2019-12-26T23:51:54Z","author_association":"NONE","body":"Are you satisfied with the resolution of your issue?\n<a href=\"https://docs.google.com/forms/d/e/1FAIpQLSfaP12TRhd9xSxjXZjcZFNXPGk4kc1-qMdv3gc6bEP90vY1ew/viewform?entry.85265664=Yes&entry.2137816233=https://github.com/tensorflow/tensorflow/issues/35298\">Yes</a>\n<a href=\"https://docs.google.com/forms/d/e/1FAIpQLSfaP12TRhd9xSxjXZjcZFNXPGk4kc1-qMdv3gc6bEP90vY1ew/viewform?entry.85265664=No&entry.2137816233=https://github.com/tensorflow/tensorflow/issues/35298\">No</a>\n"}}
{"actor":{"display_login":"tensorflow-bot"}}