{"action":"created","issue":{"url":"https://api.github.com/repos/tensorflow/models/issues/38","repository_url":"https://api.github.com/repos/tensorflow/models","labels_url":"https://api.github.com/repos/tensorflow/models/issues/38/labels{/name}","comments_url":"https://api.github.com/repos/tensorflow/models/issues/38/comments","events_url":"https://api.github.com/repos/tensorflow/models/issues/38/events","html_url":"https://github.com/tensorflow/models/issues/38","id":145540397,"number":38,"title":"How to save a graph","user":{"login":"dhbello","id":1071601,"avatar_url":"https://avatars.githubusercontent.com/u/1071601?v=3","gravatar_id":"","url":"https://api.github.com/users/dhbello","html_url":"https://github.com/dhbello","followers_url":"https://api.github.com/users/dhbello/followers","following_url":"https://api.github.com/users/dhbello/following{/other_user}","gists_url":"https://api.github.com/users/dhbello/gists{/gist_id}","starred_url":"https://api.github.com/users/dhbello/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dhbello/subscriptions","organizations_url":"https://api.github.com/users/dhbello/orgs","repos_url":"https://api.github.com/users/dhbello/repos","events_url":"https://api.github.com/users/dhbello/events{/privacy}","received_events_url":"https://api.github.com/users/dhbello/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"petewarden","id":161459,"avatar_url":"https://avatars.githubusercontent.com/u/161459?v=3","gravatar_id":"","url":"https://api.github.com/users/petewarden","html_url":"https://github.com/petewarden","followers_url":"https://api.github.com/users/petewarden/followers","following_url":"https://api.github.com/users/petewarden/following{/other_user}","gists_url":"https://api.github.com/users/petewarden/gists{/gist_id}","starred_url":"https://api.github.com/users/petewarden/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/petewarden/subscriptions","organizations_url":"https://api.github.com/users/petewarden/orgs","repos_url":"https://api.github.com/users/petewarden/repos","events_url":"https://api.github.com/users/petewarden/events{/privacy}","received_events_url":"https://api.github.com/users/petewarden/received_events","type":"User","site_admin":false},"milestone":null,"comments":2,"created_at":"2016-04-03T21:06:14Z","updated_at":"2016-04-11T15:25:39Z","closed_at":null,"body":"Quick question: How can I freeze/save my fine-tune model? (To use it later on android)\r\n\r\nI'm trying to save it during training checkpoints using graph_util.convert_variables_to_constants(), however, it is not clear with the name of the output classification layer in the retrained graph.\r\n\r\n[https://github.com/tensorflow/models/blob/master/inception/inception/inception_train.py#L349](url)\r\n```\r\n      if step % 5000 == 0 or (step + 1) == FLAGS.max_steps:\r\n        output_graph_def = graph_util.convert_variables_to_constants(\r\n                sess, sess.graph.as_graph_def(), ????)\r\n```\r\nThanks in advanced."},"comment":{"url":"https://api.github.com/repos/tensorflow/models/issues/comments/208400397","html_url":"https://github.com/tensorflow/models/issues/38#issuecomment-208400397","issue_url":"https://api.github.com/repos/tensorflow/models/issues/38","id":208400397,"user":{"login":"petewarden","id":161459,"avatar_url":"https://avatars.githubusercontent.com/u/161459?v=3","gravatar_id":"","url":"https://api.github.com/users/petewarden","html_url":"https://github.com/petewarden","followers_url":"https://api.github.com/users/petewarden/followers","following_url":"https://api.github.com/users/petewarden/following{/other_user}","gists_url":"https://api.github.com/users/petewarden/gists{/gist_id}","starred_url":"https://api.github.com/users/petewarden/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/petewarden/subscriptions","organizations_url":"https://api.github.com/users/petewarden/orgs","repos_url":"https://api.github.com/users/petewarden/repos","events_url":"https://api.github.com/users/petewarden/events{/privacy}","received_events_url":"https://api.github.com/users/petewarden/received_events","type":"User","site_admin":false},"created_at":"2016-04-11T15:25:39Z","updated_at":"2016-04-11T15:25:39Z","body":"Sorry you're hitting problems, the output layer names can be hard to figure out. Typically for Inception models they're \"softmax\" (and you'll need them to run the model too). @shlens do you know what your training script names them in this case?"}}