{"action":"created","issue":{"url":"https://api.github.com/repos/tflearn/tflearn/issues/342","repository_url":"https://api.github.com/repos/tflearn/tflearn","labels_url":"https://api.github.com/repos/tflearn/tflearn/issues/342/labels{/name}","comments_url":"https://api.github.com/repos/tflearn/tflearn/issues/342/comments","events_url":"https://api.github.com/repos/tflearn/tflearn/issues/342/events","html_url":"https://github.com/tflearn/tflearn/issues/342","id":177181475,"number":342,"title":"How many weights are learned?","user":{"login":"ruizhaogit","id":18663623,"avatar_url":"https://avatars.githubusercontent.com/u/18663623?v=3","gravatar_id":"","url":"https://api.github.com/users/ruizhaogit","html_url":"https://github.com/ruizhaogit","followers_url":"https://api.github.com/users/ruizhaogit/followers","following_url":"https://api.github.com/users/ruizhaogit/following{/other_user}","gists_url":"https://api.github.com/users/ruizhaogit/gists{/gist_id}","starred_url":"https://api.github.com/users/ruizhaogit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ruizhaogit/subscriptions","organizations_url":"https://api.github.com/users/ruizhaogit/orgs","repos_url":"https://api.github.com/users/ruizhaogit/repos","events_url":"https://api.github.com/users/ruizhaogit/events{/privacy}","received_events_url":"https://api.github.com/users/ruizhaogit/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-09-15T13:46:47Z","updated_at":"2016-09-15T21:06:59Z","closed_at":null,"body":"Hi TFlearn Team,\r\n\r\nIs it possible to know how many weight parameters are learned from the saved models?\r\n\r\nFor, example, file \"-2000\" means the parameters saved at the 2000 training step. It has 6.4 MB. Can we know how many parameters are there in the neural network? \r\n\r\nBest,\r\nRui"},"comment":{"url":"https://api.github.com/repos/tflearn/tflearn/issues/comments/247455713","html_url":"https://github.com/tflearn/tflearn/issues/342#issuecomment-247455713","issue_url":"https://api.github.com/repos/tflearn/tflearn/issues/342","id":247455713,"user":{"login":"aymericdamien","id":10386605,"avatar_url":"https://avatars.githubusercontent.com/u/10386605?v=3","gravatar_id":"","url":"https://api.github.com/users/aymericdamien","html_url":"https://github.com/aymericdamien","followers_url":"https://api.github.com/users/aymericdamien/followers","following_url":"https://api.github.com/users/aymericdamien/following{/other_user}","gists_url":"https://api.github.com/users/aymericdamien/gists{/gist_id}","starred_url":"https://api.github.com/users/aymericdamien/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aymericdamien/subscriptions","organizations_url":"https://api.github.com/users/aymericdamien/orgs","repos_url":"https://api.github.com/users/aymericdamien/repos","events_url":"https://api.github.com/users/aymericdamien/events{/privacy}","received_events_url":"https://api.github.com/users/aymericdamien/received_events","type":"User","site_admin":false},"created_at":"2016-09-15T21:06:59Z","updated_at":"2016-09-15T21:06:59Z","body":"You can use `tf.trainable_variables()` to retrieve all weights, and using their shape, you can calculate your total number of parameters. \r\n\r\nAlso note that when you save a model, you also save some other values that are not weights (such as optimizer specific params, moving averages, etc...), if you want to get rid of it, you can load a model with 'load(..., weights_only=True)' to load weights only, and re-save your model (to have a model that only contains weights)"}}
{"actor":{"display_login":"aymericdamien"}}