{"action":"created","issue":{"url":"https://api.github.com/repos/BVLC/caffe/issues/5847","repository_url":"https://api.github.com/repos/BVLC/caffe","labels_url":"https://api.github.com/repos/BVLC/caffe/issues/5847/labels{/name}","comments_url":"https://api.github.com/repos/BVLC/caffe/issues/5847/comments","events_url":"https://api.github.com/repos/BVLC/caffe/issues/5847/events","html_url":"https://github.com/BVLC/caffe/issues/5847","id":250216821,"number":5847,"title":"Reload weights into fc layer after saving in csr matrix format","user":{"login":"pgadosey","id":11605346,"avatar_url":"https://avatars3.githubusercontent.com/u/11605346?v=4","gravatar_id":"","url":"https://api.github.com/users/pgadosey","html_url":"https://github.com/pgadosey","followers_url":"https://api.github.com/users/pgadosey/followers","following_url":"https://api.github.com/users/pgadosey/following{/other_user}","gists_url":"https://api.github.com/users/pgadosey/gists{/gist_id}","starred_url":"https://api.github.com/users/pgadosey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pgadosey/subscriptions","organizations_url":"https://api.github.com/users/pgadosey/orgs","repos_url":"https://api.github.com/users/pgadosey/repos","events_url":"https://api.github.com/users/pgadosey/events{/privacy}","received_events_url":"https://api.github.com/users/pgadosey/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-08-15T04:06:07Z","updated_at":"2017-10-14T18:46:06Z","closed_at":"2017-10-14T18:46:06Z","author_association":"NONE","body":"### Issue summary\r\nHi,\r\n    I am trying to store weights in a the fc layers in a compressed sparse row format. When I retrieve the weights and convert them to csr matrix format , it's size in memory \r\nreduces drastically but when I load it back into caffe my model size remains the same. Basically this is what I'm doing:\r\n                                                             temp2 = net.params['ip1'][0].data.shape\r\n                                                             sparse_csr1 = sparse.scr_matrix(temp2, shape)\r\n                                                             net.params['ip1'][0].data[...] = sparse_csr1\r\n                                                             net.save('compressed.caffemodel')\r\n\r\nAny suggestions will be appreciated\r\n\r\n\r\n\r\n\r\n### Your system configuration\r\nOperating system: Ubuntu Server 16.0w\r\nCompiler:\r\nCUDA version (if applicable):8.0\r\nCUDNN version (if applicable):7\r\nBLAS:\r\nPython or MATLAB version (for pycaffe and matcaffe respectively):Python 2.7\r\n"},"comment":{"url":"https://api.github.com/repos/BVLC/caffe/issues/comments/336655802","html_url":"https://github.com/BVLC/caffe/issues/5847#issuecomment-336655802","issue_url":"https://api.github.com/repos/BVLC/caffe/issues/5847","id":336655802,"user":{"login":"shaibagon","id":1818351,"avatar_url":"https://avatars3.githubusercontent.com/u/1818351?v=4","gravatar_id":"","url":"https://api.github.com/users/shaibagon","html_url":"https://github.com/shaibagon","followers_url":"https://api.github.com/users/shaibagon/followers","following_url":"https://api.github.com/users/shaibagon/following{/other_user}","gists_url":"https://api.github.com/users/shaibagon/gists{/gist_id}","starred_url":"https://api.github.com/users/shaibagon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shaibagon/subscriptions","organizations_url":"https://api.github.com/users/shaibagon/orgs","repos_url":"https://api.github.com/users/shaibagon/repos","events_url":"https://api.github.com/users/shaibagon/events{/privacy}","received_events_url":"https://api.github.com/users/shaibagon/received_events","type":"User","site_admin":false},"created_at":"2017-10-14T18:46:06Z","updated_at":"2017-10-14T18:46:06Z","author_association":"CONTRIBUTOR","body":"[Seems like stackoverflow has already addressed this ](https://stackoverflow.com/q/45686472)"}}
{"actor":{"display_login":"shaibagon"}}