{"action":"created","issue":{"url":"https://api.github.com/repos/BoyuanJiang/Age-Gender-Estimate-TF/issues/3","repository_url":"https://api.github.com/repos/BoyuanJiang/Age-Gender-Estimate-TF","labels_url":"https://api.github.com/repos/BoyuanJiang/Age-Gender-Estimate-TF/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/BoyuanJiang/Age-Gender-Estimate-TF/issues/3/comments","events_url":"https://api.github.com/repos/BoyuanJiang/Age-Gender-Estimate-TF/issues/3/events","html_url":"https://github.com/BoyuanJiang/Age-Gender-Estimate-TF/issues/3","id":287283230,"node_id":"MDU6SXNzdWUyODcyODMyMzA=","number":3,"title":"模型固化问题","user":{"login":"rochou","id":6211195,"node_id":"MDQ6VXNlcjYyMTExOTU=","avatar_url":"https://avatars0.githubusercontent.com/u/6211195?v=4","gravatar_id":"","url":"https://api.github.com/users/rochou","html_url":"https://github.com/rochou","followers_url":"https://api.github.com/users/rochou/followers","following_url":"https://api.github.com/users/rochou/following{/other_user}","gists_url":"https://api.github.com/users/rochou/gists{/gist_id}","starred_url":"https://api.github.com/users/rochou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rochou/subscriptions","organizations_url":"https://api.github.com/users/rochou/orgs","repos_url":"https://api.github.com/users/rochou/repos","events_url":"https://api.github.com/users/rochou/events{/privacy}","received_events_url":"https://api.github.com/users/rochou/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":20,"created_at":"2018-01-10T01:08:13Z","updated_at":"2018-11-05T02:56:52Z","closed_at":null,"author_association":"NONE","body":"能在train.py训练模型的同时，保存为ckpt格式之外，再保存为一份.pb格式的么？\r\n我在网上找了一段保存为pb的代码\r\nfrom tensorflow.python.framework import graph_util\r\n\r\n##################模型封装\r\n        output_graph_def = graph_util.convert_variables_to_constants(sess, sess.graph_def,\r\n                                                                         output_node_names=[\"output\"])\r\n        # 形参output_node_names用于指定输出的节点名称(不是指的要输出的节点的名称)\r\n        pb_file_path = \" my_net/save_net.pb\"\r\n        with tf.gfile.FastGFile(pb_file_path, mode='wb') as f:\r\n        f.write(output_graph_def.SerializeToString())\r\n\r\n##################模型封装\r\n但是因为是初学者没有找到output_node_names(用于指定输出的节点名称)在你的代码中具体变量名是哪个，能指点一下么？谢谢。"},"comment":{"url":"https://api.github.com/repos/BoyuanJiang/Age-Gender-Estimate-TF/issues/comments/435740860","html_url":"https://github.com/BoyuanJiang/Age-Gender-Estimate-TF/issues/3#issuecomment-435740860","issue_url":"https://api.github.com/repos/BoyuanJiang/Age-Gender-Estimate-TF/issues/3","id":435740860,"node_id":"MDEyOklzc3VlQ29tbWVudDQzNTc0MDg2MA==","user":{"login":"liuyan20062010","id":35484984,"node_id":"MDQ6VXNlcjM1NDg0OTg0","avatar_url":"https://avatars0.githubusercontent.com/u/35484984?v=4","gravatar_id":"","url":"https://api.github.com/users/liuyan20062010","html_url":"https://github.com/liuyan20062010","followers_url":"https://api.github.com/users/liuyan20062010/followers","following_url":"https://api.github.com/users/liuyan20062010/following{/other_user}","gists_url":"https://api.github.com/users/liuyan20062010/gists{/gist_id}","starred_url":"https://api.github.com/users/liuyan20062010/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/liuyan20062010/subscriptions","organizations_url":"https://api.github.com/users/liuyan20062010/orgs","repos_url":"https://api.github.com/users/liuyan20062010/repos","events_url":"https://api.github.com/users/liuyan20062010/events{/privacy}","received_events_url":"https://api.github.com/users/liuyan20062010/received_events","type":"User","site_admin":false},"created_at":"2018-11-05T02:56:52Z","updated_at":"2018-11-05T02:56:52Z","author_association":"NONE","body":"模型的输入输出节点可以发出来吗"}}
{"actor":{"display_login":"liuyan20062010"}}