{"action":"created","comment":{"url":"https://api.github.com/repos/Theano/Theano/pulls/comments/43502721","id":43502721,"diff_hunk":"@@ -417,13 +419,14 @@ def __hash__(self):\n         return hash(type(self)) ^ hash(self.inplace)\n \n     def __setstate__(self, dct):\n-        inplace = dct.get('inplace', True)\n-        if inplace:\n-            self.destroy_map = {0: [0]}\n-        self.inplace = inplace\n+        self.__dict__.update(dct)\n \n-    def __getstate__(self):\n-        return dict(inplace=self.inplace)\n+        # Correctly reload older pickles where _op_use_c_code and\n+        # destroy_map were not saved\n+        if '_op_use_c_code' not in self.__dict__:\n+            self._op_use_c_code = theano.config.cxx","path":"theano/sandbox/cuda/blas.py","position":26,"original_position":26,"commit_id":"5344866f91a79e7deb2832409b0a049ba696f8a0","original_commit_id":"5344866f91a79e7deb2832409b0a049ba696f8a0","user":{"login":"nouiz","id":180987,"avatar_url":"https://avatars.githubusercontent.com/u/180987?v=3","gravatar_id":"","url":"https://api.github.com/users/nouiz","html_url":"https://github.com/nouiz","followers_url":"https://api.github.com/users/nouiz/followers","following_url":"https://api.github.com/users/nouiz/following{/other_user}","gists_url":"https://api.github.com/users/nouiz/gists{/gist_id}","starred_url":"https://api.github.com/users/nouiz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nouiz/subscriptions","organizations_url":"https://api.github.com/users/nouiz/orgs","repos_url":"https://api.github.com/users/nouiz/repos","events_url":"https://api.github.com/users/nouiz/events{/privacy}","received_events_url":"https://api.github.com/users/nouiz/received_events","type":"User","site_admin":false},"body":"This would go in setstate. But this is an optional parameter. So I think we should fix where this is accessed.","created_at":"2015-10-30T13:44:48Z","updated_at":"2015-10-30T13:44:48Z","html_url":"https://github.com/Theano/Theano/pull/3550#discussion_r43502721","pull_request_url":"https://api.github.com/repos/Theano/Theano/pulls/3550","_links":{"self":{"href":"https://api.github.com/repos/Theano/Theano/pulls/comments/43502721"},"html":{"href":"https://github.com/Theano/Theano/pull/3550#discussion_r43502721"},"pull_request":{"href":"https://api.github.com/repos/Theano/Theano/pulls/3550"}}},"pull_request":{"url":"https://api.github.com/repos/Theano/Theano/pulls/3550","id":48643602,"html_url":"https://github.com/Theano/Theano/pull/3550","diff_url":"https://github.com/Theano/Theano/pull/3550.diff","patch_url":"https://github.com/Theano/Theano/pull/3550.patch","issue_url":"https://api.github.com/repos/Theano/Theano/issues/3550","number":3550,"state":"open","locked":false,"title":"Fix unpickling of Gemm and GpuGemm Ops","user":{"login":"lamblin","id":178249,"avatar_url":"https://avatars.githubusercontent.com/u/178249?v=3","gravatar_id":"","url":"https://api.github.com/users/lamblin","html_url":"https://github.com/lamblin","followers_url":"https://api.github.com/users/lamblin/followers","following_url":"https://api.github.com/users/lamblin/following{/other_user}","gists_url":"https://api.github.com/users/lamblin/gists{/gist_id}","starred_url":"https://api.github.com/users/lamblin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lamblin/subscriptions","organizations_url":"https://api.github.com/users/lamblin/orgs","repos_url":"https://api.github.com/users/lamblin/repos","events_url":"https://api.github.com/users/lamblin/events{/privacy}","received_events_url":"https://api.github.com/users/lamblin/received_events","type":"User","site_admin":false},"body":"Closes #3535.","created_at":"2015-10-24T00:20:34Z","updated_at":"2015-10-30T13:44:48Z","closed_at":null,"merged_at":null,"merge_commit_sha":"cadbccb5cce19ddc7eafb7c21f4ff5a7dceeac66","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Theano/Theano/pulls/3550/commits","review_comments_url":"https://api.github.com/repos/Theano/Theano/pulls/3550/comments","review_comment_url":"https://api.github.com/repos/Theano/Theano/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Theano/Theano/issues/3550/comments","statuses_url":"https://api.github.com/repos/Theano/Theano/statuses/5344866f91a79e7deb2832409b0a049ba696f8a0","head":{"label":"lamblin:fix_gemm_unpickle","ref":"fix_gemm_unpickle","sha":"5344866f91a79e7deb2832409b0a049ba696f8a0","user":{"login":"lamblin","id":178249,"avatar_url":"https://avatars.githubusercontent.com/u/178249?v=3","gravatar_id":"","url":"https://api.github.com/users/lamblin","html_url":"https://github.com/lamblin","followers_url":"https://api.github.com/users/lamblin/followers","following_url":"https://api.github.com/users/lamblin/following{/other_user}","gists_url":"https://api.github.com/users/lamblin/gists{/gist_id}","starred_url":"https://api.github.com/users/lamblin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lamblin/subscriptions","organizations_url":"https://api.github.com/users/lamblin/orgs","repos_url":"https://api.github.com/users/lamblin/repos","events_url":"https://api.github.com/users/lamblin/events{/privacy}","received_events_url":"https://api.github.com/users/lamblin/received_events","type":"User","site_admin":false},"repo":{"id":2431789,"name":"Theano","full_name":"lamblin/Theano","owner":{"login":"lamblin","id":178249,"avatar_url":"https://avatars.githubusercontent.com/u/178249?v=3","gravatar_id":"","url":"https://api.github.com/users/lamblin","html_url":"https://github.com/lamblin","followers_url":"https://api.github.com/users/lamblin/followers","following_url":"https://api.github.com/users/lamblin/following{/other_user}","gists_url":"https://api.github.com/users/lamblin/gists{/gist_id}","starred_url":"https://api.github.com/users/lamblin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lamblin/subscriptions","organizations_url":"https://api.github.com/users/lamblin/orgs","repos_url":"https://api.github.com/users/lamblin/repos","events_url":"https://api.github.com/users/lamblin/events{/privacy}","received_events_url":"https://api.github.com/users/lamblin/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/lamblin/Theano","description":"Optimizing GPU-meta-programming code generating array oriented optimizing math compiler in Python","fork":true,"url":"https://api.github.com/repos/lamblin/Theano","forks_url":"https://api.github.com/repos/lamblin/Theano/forks","keys_url":"https://api.github.com/repos/lamblin/Theano/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lamblin/Theano/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lamblin/Theano/teams","hooks_url":"https://api.github.com/repos/lamblin/Theano/hooks","issue_events_url":"https://api.github.com/repos/lamblin/Theano/issues/events{/number}","events_url":"https://api.github.com/repos/lamblin/Theano/events","assignees_url":"https://api.github.com/repos/lamblin/Theano/assignees{/user}","branches_url":"https://api.github.com/repos/lamblin/Theano/branches{/branch}","tags_url":"https://api.github.com/repos/lamblin/Theano/tags","blobs_url":"https://api.github.com/repos/lamblin/Theano/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lamblin/Theano/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lamblin/Theano/git/refs{/sha}","trees_url":"https://api.github.com/repos/lamblin/Theano/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lamblin/Theano/statuses/{sha}","languages_url":"https://api.github.com/repos/lamblin/Theano/languages","stargazers_url":"https://api.github.com/repos/lamblin/Theano/stargazers","contributors_url":"https://api.github.com/repos/lamblin/Theano/contributors","subscribers_url":"https://api.github.com/repos/lamblin/Theano/subscribers","subscription_url":"https://api.github.com/repos/lamblin/Theano/subscription","commits_url":"https://api.github.com/repos/lamblin/Theano/commits{/sha}","git_commits_url":"https://api.github.com/repos/lamblin/Theano/git/commits{/sha}","comments_url":"https://api.github.com/repos/lamblin/Theano/comments{/number}","issue_comment_url":"https://api.github.com/repos/lamblin/Theano/issues/comments{/number}","contents_url":"https://api.github.com/repos/lamblin/Theano/contents/{+path}","compare_url":"https://api.github.com/repos/lamblin/Theano/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lamblin/Theano/merges","archive_url":"https://api.github.com/repos/lamblin/Theano/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lamblin/Theano/downloads","issues_url":"https://api.github.com/repos/lamblin/Theano/issues{/number}","pulls_url":"https://api.github.com/repos/lamblin/Theano/pulls{/number}","milestones_url":"https://api.github.com/repos/lamblin/Theano/milestones{/number}","notifications_url":"https://api.github.com/repos/lamblin/Theano/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lamblin/Theano/labels{/name}","releases_url":"https://api.github.com/repos/lamblin/Theano/releases{/id}","created_at":"2011-09-21T18:31:42Z","updated_at":"2015-02-17T21:53:20Z","pushed_at":"2015-10-29T22:10:02Z","git_url":"git://github.com/lamblin/Theano.git","ssh_url":"git@github.com:lamblin/Theano.git","clone_url":"https://github.com/lamblin/Theano.git","svn_url":"https://github.com/lamblin/Theano","homepage":"http://www.deeplearning.net/software/theano","size":46205,"stargazers_count":1,"watchers_count":1,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":1,"default_branch":"master"}},"base":{"label":"Theano:master","ref":"master","sha":"146fbae8c4e235cd80e959cf4d510588d811692b","user":{"login":"Theano","id":970517,"avatar_url":"https://avatars.githubusercontent.com/u/970517?v=3","gravatar_id":"","url":"https://api.github.com/users/Theano","html_url":"https://github.com/Theano","followers_url":"https://api.github.com/users/Theano/followers","following_url":"https://api.github.com/users/Theano/following{/other_user}","gists_url":"https://api.github.com/users/Theano/gists{/gist_id}","starred_url":"https://api.github.com/users/Theano/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Theano/subscriptions","organizations_url":"https://api.github.com/users/Theano/orgs","repos_url":"https://api.github.com/users/Theano/repos","events_url":"https://api.github.com/users/Theano/events{/privacy}","received_events_url":"https://api.github.com/users/Theano/received_events","type":"Organization","site_admin":false},"repo":{"id":2183193,"name":"Theano","full_name":"Theano/Theano","owner":{"login":"Theano","id":970517,"avatar_url":"https://avatars.githubusercontent.com/u/970517?v=3","gravatar_id":"","url":"https://api.github.com/users/Theano","html_url":"https://github.com/Theano","followers_url":"https://api.github.com/users/Theano/followers","following_url":"https://api.github.com/users/Theano/following{/other_user}","gists_url":"https://api.github.com/users/Theano/gists{/gist_id}","starred_url":"https://api.github.com/users/Theano/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Theano/subscriptions","organizations_url":"https://api.github.com/users/Theano/orgs","repos_url":"https://api.github.com/users/Theano/repos","events_url":"https://api.github.com/users/Theano/events{/privacy}","received_events_url":"https://api.github.com/users/Theano/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Theano/Theano","description":"Theano is a Python library that allows you to define, optimize, and evaluate mathematical expressions involving multi-dimensional arrays efficiently. It can use GPUs and perform efficient symbolic differentiation.","fork":false,"url":"https://api.github.com/repos/Theano/Theano","forks_url":"https://api.github.com/repos/Theano/Theano/forks","keys_url":"https://api.github.com/repos/Theano/Theano/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Theano/Theano/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Theano/Theano/teams","hooks_url":"https://api.github.com/repos/Theano/Theano/hooks","issue_events_url":"https://api.github.com/repos/Theano/Theano/issues/events{/number}","events_url":"https://api.github.com/repos/Theano/Theano/events","assignees_url":"https://api.github.com/repos/Theano/Theano/assignees{/user}","branches_url":"https://api.github.com/repos/Theano/Theano/branches{/branch}","tags_url":"https://api.github.com/repos/Theano/Theano/tags","blobs_url":"https://api.github.com/repos/Theano/Theano/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Theano/Theano/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Theano/Theano/git/refs{/sha}","trees_url":"https://api.github.com/repos/Theano/Theano/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Theano/Theano/statuses/{sha}","languages_url":"https://api.github.com/repos/Theano/Theano/languages","stargazers_url":"https://api.github.com/repos/Theano/Theano/stargazers","contributors_url":"https://api.github.com/repos/Theano/Theano/contributors","subscribers_url":"https://api.github.com/repos/Theano/Theano/subscribers","subscription_url":"https://api.github.com/repos/Theano/Theano/subscription","commits_url":"https://api.github.com/repos/Theano/Theano/commits{/sha}","git_commits_url":"https://api.github.com/repos/Theano/Theano/git/commits{/sha}","comments_url":"https://api.github.com/repos/Theano/Theano/comments{/number}","issue_comment_url":"https://api.github.com/repos/Theano/Theano/issues/comments{/number}","contents_url":"https://api.github.com/repos/Theano/Theano/contents/{+path}","compare_url":"https://api.github.com/repos/Theano/Theano/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Theano/Theano/merges","archive_url":"https://api.github.com/repos/Theano/Theano/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Theano/Theano/downloads","issues_url":"https://api.github.com/repos/Theano/Theano/issues{/number}","pulls_url":"https://api.github.com/repos/Theano/Theano/pulls{/number}","milestones_url":"https://api.github.com/repos/Theano/Theano/milestones{/number}","notifications_url":"https://api.github.com/repos/Theano/Theano/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Theano/Theano/labels{/name}","releases_url":"https://api.github.com/repos/Theano/Theano/releases{/id}","created_at":"2011-08-10T03:48:06Z","updated_at":"2015-10-30T08:30:26Z","pushed_at":"2015-10-30T13:36:28Z","git_url":"git://github.com/Theano/Theano.git","ssh_url":"git@github.com:Theano/Theano.git","clone_url":"https://github.com/Theano/Theano.git","svn_url":"https://github.com/Theano/Theano","homepage":"http://www.deeplearning.net/software/theano","size":68284,"stargazers_count":2201,"watchers_count":2201,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":813,"mirror_url":null,"open_issues_count":512,"forks":813,"open_issues":512,"watchers":2201,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Theano/Theano/pulls/3550"},"html":{"href":"https://github.com/Theano/Theano/pull/3550"},"issue":{"href":"https://api.github.com/repos/Theano/Theano/issues/3550"},"comments":{"href":"https://api.github.com/repos/Theano/Theano/issues/3550/comments"},"review_comments":{"href":"https://api.github.com/repos/Theano/Theano/pulls/3550/comments"},"review_comment":{"href":"https://api.github.com/repos/Theano/Theano/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Theano/Theano/pulls/3550/commits"},"statuses":{"href":"https://api.github.com/repos/Theano/Theano/statuses/5344866f91a79e7deb2832409b0a049ba696f8a0"}}}}