{"action":"opened","issue":{"url":"https://api.github.com/repos/madalinabuzau/tensorflow-eager-tutorials/issues/3","repository_url":"https://api.github.com/repos/madalinabuzau/tensorflow-eager-tutorials","labels_url":"https://api.github.com/repos/madalinabuzau/tensorflow-eager-tutorials/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/madalinabuzau/tensorflow-eager-tutorials/issues/3/comments","events_url":"https://api.github.com/repos/madalinabuzau/tensorflow-eager-tutorials/issues/3/events","html_url":"https://github.com/madalinabuzau/tensorflow-eager-tutorials/issues/3","id":343490415,"node_id":"MDU6SXNzdWUzNDM0OTA0MTU=","number":3,"title":"how to restrict memory of gpu for tensorflow using？","user":{"login":"Johnson-yue","id":10268274,"node_id":"MDQ6VXNlcjEwMjY4Mjc0","avatar_url":"https://avatars0.githubusercontent.com/u/10268274?v=4","gravatar_id":"","url":"https://api.github.com/users/Johnson-yue","html_url":"https://github.com/Johnson-yue","followers_url":"https://api.github.com/users/Johnson-yue/followers","following_url":"https://api.github.com/users/Johnson-yue/following{/other_user}","gists_url":"https://api.github.com/users/Johnson-yue/gists{/gist_id}","starred_url":"https://api.github.com/users/Johnson-yue/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Johnson-yue/subscriptions","organizations_url":"https://api.github.com/users/Johnson-yue/orgs","repos_url":"https://api.github.com/users/Johnson-yue/repos","events_url":"https://api.github.com/users/Johnson-yue/events{/privacy}","received_events_url":"https://api.github.com/users/Johnson-yue/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-07-23T05:15:37Z","updated_at":"2018-07-23T05:15:37Z","closed_at":null,"author_association":"NONE","body":"Hi，Thanks your tutorials！ it is a great help to me. Yep, it is me again\r\nBut I have one question: How to restrict memory of GPU for tensorflow using?\r\nI know  in static graph mode:\r\n` gpu_option = tf.GPUOptions(allow_growth=True)`\r\n`config = tf.ConfigProto(log_device_placement=False`\r\n`                                       allow_soft_placement=True,`\r\n`                                        gpu_options=gpu_option)`\r\n`with tf.Session(config=config) as sess:`\r\n`                # something you want to do`\r\n\r\nBut in eager mode, it have not sess  ,So, how to config tf?"}}
{"actor":{"display_login":"Johnson-yue"}}