{"action":"created","issue":{"url":"https://api.github.com/repos/tensorflow/tensorflow/issues/8425","repository_url":"https://api.github.com/repos/tensorflow/tensorflow","labels_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/8425/labels{/name}","comments_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/8425/comments","events_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/8425/events","html_url":"https://github.com/tensorflow/tensorflow/issues/8425","id":214321189,"node_id":"MDU6SXNzdWUyMTQzMjExODk=","number":8425,"title":"Saving with monitored session","user":{"login":"vrenkens","id":16047110,"node_id":"MDQ6VXNlcjE2MDQ3MTEw","avatar_url":"https://avatars0.githubusercontent.com/u/16047110?v=4","gravatar_id":"","url":"https://api.github.com/users/vrenkens","html_url":"https://github.com/vrenkens","followers_url":"https://api.github.com/users/vrenkens/followers","following_url":"https://api.github.com/users/vrenkens/following{/other_user}","gists_url":"https://api.github.com/users/vrenkens/gists{/gist_id}","starred_url":"https://api.github.com/users/vrenkens/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vrenkens/subscriptions","organizations_url":"https://api.github.com/users/vrenkens/orgs","repos_url":"https://api.github.com/users/vrenkens/repos","events_url":"https://api.github.com/users/vrenkens/events{/privacy}","received_events_url":"https://api.github.com/users/vrenkens/received_events","type":"User","site_admin":false},"labels":[{"id":404586594,"node_id":"MDU6TGFiZWw0MDQ1ODY1OTQ=","url":"https://api.github.com/repos/tensorflow/tensorflow/labels/stat:awaiting%20tensorflower","name":"stat:awaiting tensorflower","color":"b60205","default":false}],"state":"closed","locked":false,"assignee":{"login":"ispirmustafa","id":19293677,"node_id":"MDQ6VXNlcjE5MjkzNjc3","avatar_url":"https://avatars1.githubusercontent.com/u/19293677?v=4","gravatar_id":"","url":"https://api.github.com/users/ispirmustafa","html_url":"https://github.com/ispirmustafa","followers_url":"https://api.github.com/users/ispirmustafa/followers","following_url":"https://api.github.com/users/ispirmustafa/following{/other_user}","gists_url":"https://api.github.com/users/ispirmustafa/gists{/gist_id}","starred_url":"https://api.github.com/users/ispirmustafa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ispirmustafa/subscriptions","organizations_url":"https://api.github.com/users/ispirmustafa/orgs","repos_url":"https://api.github.com/users/ispirmustafa/repos","events_url":"https://api.github.com/users/ispirmustafa/events{/privacy}","received_events_url":"https://api.github.com/users/ispirmustafa/received_events","type":"User","site_admin":false},"assignees":[{"login":"ispirmustafa","id":19293677,"node_id":"MDQ6VXNlcjE5MjkzNjc3","avatar_url":"https://avatars1.githubusercontent.com/u/19293677?v=4","gravatar_id":"","url":"https://api.github.com/users/ispirmustafa","html_url":"https://github.com/ispirmustafa","followers_url":"https://api.github.com/users/ispirmustafa/followers","following_url":"https://api.github.com/users/ispirmustafa/following{/other_user}","gists_url":"https://api.github.com/users/ispirmustafa/gists{/gist_id}","starred_url":"https://api.github.com/users/ispirmustafa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ispirmustafa/subscriptions","organizations_url":"https://api.github.com/users/ispirmustafa/orgs","repos_url":"https://api.github.com/users/ispirmustafa/repos","events_url":"https://api.github.com/users/ispirmustafa/events{/privacy}","received_events_url":"https://api.github.com/users/ispirmustafa/received_events","type":"User","site_admin":false}],"milestone":null,"comments":5,"created_at":"2017-03-15T08:51:55Z","updated_at":"2018-08-10T12:34:23Z","closed_at":"2017-03-16T23:52:29Z","author_association":"NONE","body":"I get the following error when trying to use a saver with a Monitored session:\r\n\r\n```\r\nFile \"/users/spraak/spch/prog/spch/tensorflow-1.0.0/lib/python2.7/site-packages/tensorflow/python/training/saver.py\", line 1369, in save\r\n    raise TypeError(\"'sess' must be a Session; %s\" % sess)\r\nTypeError: 'sess' must be a Session; <tensorflow.python.training.monitored_session.MonitoredSession object at 0x2be710d0>\r\n```\r\n\r\nI save like this:\r\n\r\n```\r\nwith tf.train.MonitoredTrainingSession(...) as sess:\r\n    ...\r\n    saver.save(sess, 'model.ckpt')\r\n```\r\n\r\ninstead of sess I also tried `tf.get_default_session()`, but this returns None. In all other cases the monitored_session works just like a normal session, so I think it's a bug."},"comment":{"url":"https://api.github.com/repos/tensorflow/tensorflow/issues/comments/412068947","html_url":"https://github.com/tensorflow/tensorflow/issues/8425#issuecomment-412068947","issue_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/8425","id":412068947,"node_id":"MDEyOklzc3VlQ29tbWVudDQxMjA2ODk0Nw==","user":{"login":"vrenkens","id":16047110,"node_id":"MDQ6VXNlcjE2MDQ3MTEw","avatar_url":"https://avatars0.githubusercontent.com/u/16047110?v=4","gravatar_id":"","url":"https://api.github.com/users/vrenkens","html_url":"https://github.com/vrenkens","followers_url":"https://api.github.com/users/vrenkens/followers","following_url":"https://api.github.com/users/vrenkens/following{/other_user}","gists_url":"https://api.github.com/users/vrenkens/gists{/gist_id}","starred_url":"https://api.github.com/users/vrenkens/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vrenkens/subscriptions","organizations_url":"https://api.github.com/users/vrenkens/orgs","repos_url":"https://api.github.com/users/vrenkens/repos","events_url":"https://api.github.com/users/vrenkens/events{/privacy}","received_events_url":"https://api.github.com/users/vrenkens/received_events","type":"User","site_admin":false},"created_at":"2018-08-10T12:34:23Z","updated_at":"2018-08-10T12:34:23Z","author_association":"NONE","body":"You have to create a hook that does the saving for you and put it into the session"}}
{"actor":{"display_login":"vrenkens"}}