{"action":"created","issue":{"url":"https://api.github.com/repos/tensorflow/tensorflow/issues/18304","repository_url":"https://api.github.com/repos/tensorflow/tensorflow","labels_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/18304/labels{/name}","comments_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/18304/comments","events_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/18304/events","html_url":"https://github.com/tensorflow/tensorflow/issues/18304","id":312159670,"number":18304,"title":"tf.enable_eager_execution must be called at program startup.","user":{"login":"LandSurveyorK","id":22415727,"avatar_url":"https://avatars2.githubusercontent.com/u/22415727?v=4","gravatar_id":"","url":"https://api.github.com/users/LandSurveyorK","html_url":"https://github.com/LandSurveyorK","followers_url":"https://api.github.com/users/LandSurveyorK/followers","following_url":"https://api.github.com/users/LandSurveyorK/following{/other_user}","gists_url":"https://api.github.com/users/LandSurveyorK/gists{/gist_id}","starred_url":"https://api.github.com/users/LandSurveyorK/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LandSurveyorK/subscriptions","organizations_url":"https://api.github.com/users/LandSurveyorK/orgs","repos_url":"https://api.github.com/users/LandSurveyorK/repos","events_url":"https://api.github.com/users/LandSurveyorK/events{/privacy}","received_events_url":"https://api.github.com/users/LandSurveyorK/received_events","type":"User","site_admin":false},"labels":[{"id":386191887,"url":"https://api.github.com/repos/tensorflow/tensorflow/labels/stat:awaiting%20response","name":"stat:awaiting response","color":"5319e7","default":false}],"state":"closed","locked":false,"assignee":{"login":"asimshankar","id":16018,"avatar_url":"https://avatars2.githubusercontent.com/u/16018?v=4","gravatar_id":"","url":"https://api.github.com/users/asimshankar","html_url":"https://github.com/asimshankar","followers_url":"https://api.github.com/users/asimshankar/followers","following_url":"https://api.github.com/users/asimshankar/following{/other_user}","gists_url":"https://api.github.com/users/asimshankar/gists{/gist_id}","starred_url":"https://api.github.com/users/asimshankar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asimshankar/subscriptions","organizations_url":"https://api.github.com/users/asimshankar/orgs","repos_url":"https://api.github.com/users/asimshankar/repos","events_url":"https://api.github.com/users/asimshankar/events{/privacy}","received_events_url":"https://api.github.com/users/asimshankar/received_events","type":"User","site_admin":false},"assignees":[{"login":"asimshankar","id":16018,"avatar_url":"https://avatars2.githubusercontent.com/u/16018?v=4","gravatar_id":"","url":"https://api.github.com/users/asimshankar","html_url":"https://github.com/asimshankar","followers_url":"https://api.github.com/users/asimshankar/followers","following_url":"https://api.github.com/users/asimshankar/following{/other_user}","gists_url":"https://api.github.com/users/asimshankar/gists{/gist_id}","starred_url":"https://api.github.com/users/asimshankar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asimshankar/subscriptions","organizations_url":"https://api.github.com/users/asimshankar/orgs","repos_url":"https://api.github.com/users/asimshankar/repos","events_url":"https://api.github.com/users/asimshankar/events{/privacy}","received_events_url":"https://api.github.com/users/asimshankar/received_events","type":"User","site_admin":false}],"milestone":null,"comments":4,"created_at":"2018-04-07T01:26:46Z","updated_at":"2018-05-09T23:44:13Z","closed_at":"2018-04-07T17:01:19Z","author_association":"NONE","body":"```\r\nfrom __future__ import absolute_import, division, print_function\r\nimport os\r\nimport matplotlib.pyplot as plt\r\n\r\nimport tensorflow as tf\r\nprint(tf.VERSION)   #  => 1.7.0\r\nimport tensorflow.contrib.eager as tfe\r\n\r\ntf.enable_eager_execution()\r\n```\r\n\r\n```\r\nValueError                                Traceback (most recent call last)\r\n<ipython-input-59-0c62cac7517d> in <module>()\r\n      7 import tensorflow.contrib.eager as tfe\r\n      8 \r\n----> 9 tf.enable_eager_execution()\r\n\r\nD:\\Anaconda3\\envs\\tensorflow\\lib\\site-packages\\tensorflow\\python\\framework\\ops.py in enable_eager_execution(config, device_policy)\r\n   5242     if graph_mode_has_been_used:\r\n   5243       raise ValueError(\r\n-> 5244           \"tf.enable_eager_execution must be called at program startup.\")\r\n   5245   context._default_mode = context.EAGER_MODE\r\n   5246   if context._context is None:\r\n\r\nValueError: tf.enable_eager_execution must be called at program startup.\r\n```"},"comment":{"url":"https://api.github.com/repos/tensorflow/tensorflow/issues/comments/387907648","html_url":"https://github.com/tensorflow/tensorflow/issues/18304#issuecomment-387907648","issue_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/18304","id":387907648,"user":{"login":"vincent-pli","id":8669744,"avatar_url":"https://avatars0.githubusercontent.com/u/8669744?v=4","gravatar_id":"","url":"https://api.github.com/users/vincent-pli","html_url":"https://github.com/vincent-pli","followers_url":"https://api.github.com/users/vincent-pli/followers","following_url":"https://api.github.com/users/vincent-pli/following{/other_user}","gists_url":"https://api.github.com/users/vincent-pli/gists{/gist_id}","starred_url":"https://api.github.com/users/vincent-pli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vincent-pli/subscriptions","organizations_url":"https://api.github.com/users/vincent-pli/orgs","repos_url":"https://api.github.com/users/vincent-pli/repos","events_url":"https://api.github.com/users/vincent-pli/events{/privacy}","received_events_url":"https://api.github.com/users/vincent-pli/received_events","type":"User","site_admin":false},"created_at":"2018-05-09T23:44:13Z","updated_at":"2018-05-09T23:44:13Z","author_association":"NONE","body":"Thanks a lot, also fix my issue"}}
{"actor":{"display_login":"vincent-pli"}}