{"action":"created","issue":{"url":"https://api.github.com/repos/tensorflow/tensorflow/issues/15098","repository_url":"https://api.github.com/repos/tensorflow/tensorflow","labels_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/15098/labels{/name}","comments_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/15098/comments","events_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/15098/events","html_url":"https://github.com/tensorflow/tensorflow/pull/15098","id":279012182,"node_id":"MDExOlB1bGxSZXF1ZXN0MTU2MjA4NzE1","number":15098,"title":"improve tf.saved_model.loader.load exception","user":{"login":"boeddeker","id":13744128,"node_id":"MDQ6VXNlcjEzNzQ0MTI4","avatar_url":"https://avatars3.githubusercontent.com/u/13744128?v=4","gravatar_id":"","url":"https://api.github.com/users/boeddeker","html_url":"https://github.com/boeddeker","followers_url":"https://api.github.com/users/boeddeker/followers","following_url":"https://api.github.com/users/boeddeker/following{/other_user}","gists_url":"https://api.github.com/users/boeddeker/gists{/gist_id}","starred_url":"https://api.github.com/users/boeddeker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/boeddeker/subscriptions","organizations_url":"https://api.github.com/users/boeddeker/orgs","repos_url":"https://api.github.com/users/boeddeker/repos","events_url":"https://api.github.com/users/boeddeker/events{/privacy}","received_events_url":"https://api.github.com/users/boeddeker/received_events","type":"User","site_admin":false},"labels":[{"id":390482148,"node_id":"MDU6TGFiZWwzOTA0ODIxNDg=","url":"https://api.github.com/repos/tensorflow/tensorflow/labels/awaiting%20review","name":"awaiting review","color":"fef2c0","default":false},{"id":300136587,"node_id":"MDU6TGFiZWwzMDAxMzY1ODc=","url":"https://api.github.com/repos/tensorflow/tensorflow/labels/cla:%20yes","name":"cla: yes","color":"009800","default":false}],"state":"open","locked":false,"assignee":{"login":"caisq","id":16824702,"node_id":"MDQ6VXNlcjE2ODI0NzAy","avatar_url":"https://avatars2.githubusercontent.com/u/16824702?v=4","gravatar_id":"","url":"https://api.github.com/users/caisq","html_url":"https://github.com/caisq","followers_url":"https://api.github.com/users/caisq/followers","following_url":"https://api.github.com/users/caisq/following{/other_user}","gists_url":"https://api.github.com/users/caisq/gists{/gist_id}","starred_url":"https://api.github.com/users/caisq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/caisq/subscriptions","organizations_url":"https://api.github.com/users/caisq/orgs","repos_url":"https://api.github.com/users/caisq/repos","events_url":"https://api.github.com/users/caisq/events{/privacy}","received_events_url":"https://api.github.com/users/caisq/received_events","type":"User","site_admin":false},"assignees":[{"login":"caisq","id":16824702,"node_id":"MDQ6VXNlcjE2ODI0NzAy","avatar_url":"https://avatars2.githubusercontent.com/u/16824702?v=4","gravatar_id":"","url":"https://api.github.com/users/caisq","html_url":"https://github.com/caisq","followers_url":"https://api.github.com/users/caisq/followers","following_url":"https://api.github.com/users/caisq/following{/other_user}","gists_url":"https://api.github.com/users/caisq/gists{/gist_id}","starred_url":"https://api.github.com/users/caisq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/caisq/subscriptions","organizations_url":"https://api.github.com/users/caisq/orgs","repos_url":"https://api.github.com/users/caisq/repos","events_url":"https://api.github.com/users/caisq/events{/privacy}","received_events_url":"https://api.github.com/users/caisq/received_events","type":"User","site_admin":false}],"milestone":null,"comments":16,"created_at":"2017-12-04T14:21:01Z","updated_at":"2018-08-09T13:01:27Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/tensorflow/tensorflow/pulls/15098","html_url":"https://github.com/tensorflow/tensorflow/pull/15098","diff_url":"https://github.com/tensorflow/tensorflow/pull/15098.diff","patch_url":"https://github.com/tensorflow/tensorflow/pull/15098.patch"},"body":"If the `tags` argument to `tf.saved_model.loader.load` is wrong, the exception does not help.\r\nFirst: It says use saved_model_cli, but it take a while to figure out that this is a executable and not a python function.\r\nSecond: The required information (allowed tags) is known inside `tf.saved_model.loader.load` and now it prints this error\r\n```python\r\n>>> with tf.Session(graph=tf.Graph()) as sess:\r\n>>>    tf.saved_model.loader.load(sess, ['wrong tag'], 'path/to/model')\r\nRuntimeError: MetaGraphDef associated with tags 'wrong tag' could not be found in SavedModel. To inspect available tag-sets in the SavedModel, please use the SavedModel CLI: `saved_model_cli`available_tags: [{'serve'}]\r\n```"},"comment":{"url":"https://api.github.com/repos/tensorflow/tensorflow/issues/comments/411749298","html_url":"https://github.com/tensorflow/tensorflow/pull/15098#issuecomment-411749298","issue_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/15098","id":411749298,"node_id":"MDEyOklzc3VlQ29tbWVudDQxMTc0OTI5OA==","user":{"login":"tensorflowbutler","id":28546240,"node_id":"MDQ6VXNlcjI4NTQ2MjQw","avatar_url":"https://avatars2.githubusercontent.com/u/28546240?v=4","gravatar_id":"","url":"https://api.github.com/users/tensorflowbutler","html_url":"https://github.com/tensorflowbutler","followers_url":"https://api.github.com/users/tensorflowbutler/followers","following_url":"https://api.github.com/users/tensorflowbutler/following{/other_user}","gists_url":"https://api.github.com/users/tensorflowbutler/gists{/gist_id}","starred_url":"https://api.github.com/users/tensorflowbutler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tensorflowbutler/subscriptions","organizations_url":"https://api.github.com/users/tensorflowbutler/orgs","repos_url":"https://api.github.com/users/tensorflowbutler/repos","events_url":"https://api.github.com/users/tensorflowbutler/events{/privacy}","received_events_url":"https://api.github.com/users/tensorflowbutler/received_events","type":"User","site_admin":false},"created_at":"2018-08-09T13:01:27Z","updated_at":"2018-08-09T13:01:27Z","author_association":"MEMBER","body":"Nagging Reviewer @davidsoergel: You have been added as a reviewer to this pull request. Please add your review or reassign. It has been 226 days with no activity and the `awaiting review` label has been applied."}}
{"actor":{"display_login":"tensorflowbutler"}}