{"action":"opened","number":10604,"pull_request":{"url":"https://api.github.com/repos/apache/incubator-mxnet/pulls/10604","id":182502565,"html_url":"https://github.com/apache/incubator-mxnet/pull/10604","diff_url":"https://github.com/apache/incubator-mxnet/pull/10604.diff","patch_url":"https://github.com/apache/incubator-mxnet/pull/10604.patch","issue_url":"https://api.github.com/repos/apache/incubator-mxnet/issues/10604","number":10604,"state":"open","locked":false,"title":"fix strip prefix in HybridBlock with parameter to control it.","user":{"login":"ariwaranosai","id":6779237,"avatar_url":"https://avatars0.githubusercontent.com/u/6779237?v=4","gravatar_id":"","url":"https://api.github.com/users/ariwaranosai","html_url":"https://github.com/ariwaranosai","followers_url":"https://api.github.com/users/ariwaranosai/followers","following_url":"https://api.github.com/users/ariwaranosai/following{/other_user}","gists_url":"https://api.github.com/users/ariwaranosai/gists{/gist_id}","starred_url":"https://api.github.com/users/ariwaranosai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ariwaranosai/subscriptions","organizations_url":"https://api.github.com/users/ariwaranosai/orgs","repos_url":"https://api.github.com/users/ariwaranosai/repos","events_url":"https://api.github.com/users/ariwaranosai/events{/privacy}","received_events_url":"https://api.github.com/users/ariwaranosai/received_events","type":"User","site_admin":false},"body":"## Description ##\r\n\r\nfix #10601 \r\n\r\nadd strip_prefix parameter and strip prefix during export model.\r\n\r\ncode likes\r\n\r\n```python\r\nnet.export(\"model\", 0)\r\nnet.load_params(\"model-0000.params\", ctx=mx.cpu())\r\n```\r\ncan run correct.\r\n\r\n## Checklist ##\r\n### Essentials ###\r\nPlease feel free to remove inapplicable items for your PR.\r\n- [x] Changes are complete (i.e. I finished coding on this PR)\r\n- [x] All changes have test coverage:\r\n- [x ] Code is well-documented: \r\n- [x] To the my best knowledge, examples are either not affected by this change, or have been fixed to be compatible with this change\r\n\r\n### Changes ###\r\n- add parameter to control which strip prefix during export models or not.","created_at":"2018-04-18T14:41:32Z","updated_at":"2018-04-18T14:41:32Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/apache/incubator-mxnet/pulls/10604/commits","review_comments_url":"https://api.github.com/repos/apache/incubator-mxnet/pulls/10604/comments","review_comment_url":"https://api.github.com/repos/apache/incubator-mxnet/pulls/comments{/number}","comments_url":"https://api.github.com/repos/apache/incubator-mxnet/issues/10604/comments","statuses_url":"https://api.github.com/repos/apache/incubator-mxnet/statuses/be05e37b05af61a542a66c68b7ca74f23a3aabe2","head":{"label":"ariwaranosai:master","ref":"master","sha":"be05e37b05af61a542a66c68b7ca74f23a3aabe2","user":{"login":"ariwaranosai","id":6779237,"avatar_url":"https://avatars0.githubusercontent.com/u/6779237?v=4","gravatar_id":"","url":"https://api.github.com/users/ariwaranosai","html_url":"https://github.com/ariwaranosai","followers_url":"https://api.github.com/users/ariwaranosai/followers","following_url":"https://api.github.com/users/ariwaranosai/following{/other_user}","gists_url":"https://api.github.com/users/ariwaranosai/gists{/gist_id}","starred_url":"https://api.github.com/users/ariwaranosai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ariwaranosai/subscriptions","organizations_url":"https://api.github.com/users/ariwaranosai/orgs","repos_url":"https://api.github.com/users/ariwaranosai/repos","events_url":"https://api.github.com/users/ariwaranosai/events{/privacy}","received_events_url":"https://api.github.com/users/ariwaranosai/received_events","type":"User","site_admin":false},"repo":{"id":130067225,"name":"incubator-mxnet","full_name":"ariwaranosai/incubator-mxnet","owner":{"login":"ariwaranosai","id":6779237,"avatar_url":"https://avatars0.githubusercontent.com/u/6779237?v=4","gravatar_id":"","url":"https://api.github.com/users/ariwaranosai","html_url":"https://github.com/ariwaranosai","followers_url":"https://api.github.com/users/ariwaranosai/followers","following_url":"https://api.github.com/users/ariwaranosai/following{/other_user}","gists_url":"https://api.github.com/users/ariwaranosai/gists{/gist_id}","starred_url":"https://api.github.com/users/ariwaranosai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ariwaranosai/subscriptions","organizations_url":"https://api.github.com/users/ariwaranosai/orgs","repos_url":"https://api.github.com/users/ariwaranosai/repos","events_url":"https://api.github.com/users/ariwaranosai/events{/privacy}","received_events_url":"https://api.github.com/users/ariwaranosai/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ariwaranosai/incubator-mxnet","description":"Lightweight, Portable, Flexible Distributed/Mobile Deep Learning with Dynamic, Mutation-aware Dataflow Dep Scheduler; for Python, R, Julia, Scala, Go, Javascript and more","fork":true,"url":"https://api.github.com/repos/ariwaranosai/incubator-mxnet","forks_url":"https://api.github.com/repos/ariwaranosai/incubator-mxnet/forks","keys_url":"https://api.github.com/repos/ariwaranosai/incubator-mxnet/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ariwaranosai/incubator-mxnet/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ariwaranosai/incubator-mxnet/teams","hooks_url":"https://api.github.com/repos/ariwaranosai/incubator-mxnet/hooks","issue_events_url":"https://api.github.com/repos/ariwaranosai/incubator-mxnet/issues/events{/number}","events_url":"https://api.github.com/repos/ariwaranosai/incubator-mxnet/events","assignees_url":"https://api.github.com/repos/ariwaranosai/incubator-mxnet/assignees{/user}","branches_url":"https://api.github.com/repos/ariwaranosai/incubator-mxnet/branches{/branch}","tags_url":"https://api.github.com/repos/ariwaranosai/incubator-mxnet/tags","blobs_url":"https://api.github.com/repos/ariwaranosai/incubator-mxnet/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ariwaranosai/incubator-mxnet/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ariwaranosai/incubator-mxnet/git/refs{/sha}","trees_url":"https://api.github.com/repos/ariwaranosai/incubator-mxnet/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ariwaranosai/incubator-mxnet/statuses/{sha}","languages_url":"https://api.github.com/repos/ariwaranosai/incubator-mxnet/languages","stargazers_url":"https://api.github.com/repos/ariwaranosai/incubator-mxnet/stargazers","contributors_url":"https://api.github.com/repos/ariwaranosai/incubator-mxnet/contributors","subscribers_url":"https://api.github.com/repos/ariwaranosai/incubator-mxnet/subscribers","subscription_url":"https://api.github.com/repos/ariwaranosai/incubator-mxnet/subscription","commits_url":"https://api.github.com/repos/ariwaranosai/incubator-mxnet/commits{/sha}","git_commits_url":"https://api.github.com/repos/ariwaranosai/incubator-mxnet/git/commits{/sha}","comments_url":"https://api.github.com/repos/ariwaranosai/incubator-mxnet/comments{/number}","issue_comment_url":"https://api.github.com/repos/ariwaranosai/incubator-mxnet/issues/comments{/number}","contents_url":"https://api.github.com/repos/ariwaranosai/incubator-mxnet/contents/{+path}","compare_url":"https://api.github.com/repos/ariwaranosai/incubator-mxnet/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ariwaranosai/incubator-mxnet/merges","archive_url":"https://api.github.com/repos/ariwaranosai/incubator-mxnet/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ariwaranosai/incubator-mxnet/downloads","issues_url":"https://api.github.com/repos/ariwaranosai/incubator-mxnet/issues{/number}","pulls_url":"https://api.github.com/repos/ariwaranosai/incubator-mxnet/pulls{/number}","milestones_url":"https://api.github.com/repos/ariwaranosai/incubator-mxnet/milestones{/number}","notifications_url":"https://api.github.com/repos/ariwaranosai/incubator-mxnet/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ariwaranosai/incubator-mxnet/labels{/name}","releases_url":"https://api.github.com/repos/ariwaranosai/incubator-mxnet/releases{/id}","deployments_url":"https://api.github.com/repos/ariwaranosai/incubator-mxnet/deployments","created_at":"2018-04-18T13:32:38Z","updated_at":"2018-04-18T14:30:05Z","pushed_at":"2018-04-18T14:30:03Z","git_url":"git://github.com/ariwaranosai/incubator-mxnet.git","ssh_url":"git@github.com:ariwaranosai/incubator-mxnet.git","clone_url":"https://github.com/ariwaranosai/incubator-mxnet.git","svn_url":"https://github.com/ariwaranosai/incubator-mxnet","homepage":"http://mxnet.io","size":35244,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"apache:master","ref":"master","sha":"544690035c4fea5a812a674694333879dcedc006","user":{"login":"apache","id":47359,"avatar_url":"https://avatars0.githubusercontent.com/u/47359?v=4","gravatar_id":"","url":"https://api.github.com/users/apache","html_url":"https://github.com/apache","followers_url":"https://api.github.com/users/apache/followers","following_url":"https://api.github.com/users/apache/following{/other_user}","gists_url":"https://api.github.com/users/apache/gists{/gist_id}","starred_url":"https://api.github.com/users/apache/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apache/subscriptions","organizations_url":"https://api.github.com/users/apache/orgs","repos_url":"https://api.github.com/users/apache/repos","events_url":"https://api.github.com/users/apache/events{/privacy}","received_events_url":"https://api.github.com/users/apache/received_events","type":"Organization","site_admin":false},"repo":{"id":34864402,"name":"incubator-mxnet","full_name":"apache/incubator-mxnet","owner":{"login":"apache","id":47359,"avatar_url":"https://avatars0.githubusercontent.com/u/47359?v=4","gravatar_id":"","url":"https://api.github.com/users/apache","html_url":"https://github.com/apache","followers_url":"https://api.github.com/users/apache/followers","following_url":"https://api.github.com/users/apache/following{/other_user}","gists_url":"https://api.github.com/users/apache/gists{/gist_id}","starred_url":"https://api.github.com/users/apache/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apache/subscriptions","organizations_url":"https://api.github.com/users/apache/orgs","repos_url":"https://api.github.com/users/apache/repos","events_url":"https://api.github.com/users/apache/events{/privacy}","received_events_url":"https://api.github.com/users/apache/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/apache/incubator-mxnet","description":"Lightweight, Portable, Flexible Distributed/Mobile Deep Learning with Dynamic, Mutation-aware Dataflow Dep Scheduler; for Python, R, Julia, Scala, Go, Javascript and more","fork":false,"url":"https://api.github.com/repos/apache/incubator-mxnet","forks_url":"https://api.github.com/repos/apache/incubator-mxnet/forks","keys_url":"https://api.github.com/repos/apache/incubator-mxnet/keys{/key_id}","collaborators_url":"https://api.github.com/repos/apache/incubator-mxnet/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/apache/incubator-mxnet/teams","hooks_url":"https://api.github.com/repos/apache/incubator-mxnet/hooks","issue_events_url":"https://api.github.com/repos/apache/incubator-mxnet/issues/events{/number}","events_url":"https://api.github.com/repos/apache/incubator-mxnet/events","assignees_url":"https://api.github.com/repos/apache/incubator-mxnet/assignees{/user}","branches_url":"https://api.github.com/repos/apache/incubator-mxnet/branches{/branch}","tags_url":"https://api.github.com/repos/apache/incubator-mxnet/tags","blobs_url":"https://api.github.com/repos/apache/incubator-mxnet/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/apache/incubator-mxnet/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/apache/incubator-mxnet/git/refs{/sha}","trees_url":"https://api.github.com/repos/apache/incubator-mxnet/git/trees{/sha}","statuses_url":"https://api.github.com/repos/apache/incubator-mxnet/statuses/{sha}","languages_url":"https://api.github.com/repos/apache/incubator-mxnet/languages","stargazers_url":"https://api.github.com/repos/apache/incubator-mxnet/stargazers","contributors_url":"https://api.github.com/repos/apache/incubator-mxnet/contributors","subscribers_url":"https://api.github.com/repos/apache/incubator-mxnet/subscribers","subscription_url":"https://api.github.com/repos/apache/incubator-mxnet/subscription","commits_url":"https://api.github.com/repos/apache/incubator-mxnet/commits{/sha}","git_commits_url":"https://api.github.com/repos/apache/incubator-mxnet/git/commits{/sha}","comments_url":"https://api.github.com/repos/apache/incubator-mxnet/comments{/number}","issue_comment_url":"https://api.github.com/repos/apache/incubator-mxnet/issues/comments{/number}","contents_url":"https://api.github.com/repos/apache/incubator-mxnet/contents/{+path}","compare_url":"https://api.github.com/repos/apache/incubator-mxnet/compare/{base}...{head}","merges_url":"https://api.github.com/repos/apache/incubator-mxnet/merges","archive_url":"https://api.github.com/repos/apache/incubator-mxnet/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/apache/incubator-mxnet/downloads","issues_url":"https://api.github.com/repos/apache/incubator-mxnet/issues{/number}","pulls_url":"https://api.github.com/repos/apache/incubator-mxnet/pulls{/number}","milestones_url":"https://api.github.com/repos/apache/incubator-mxnet/milestones{/number}","notifications_url":"https://api.github.com/repos/apache/incubator-mxnet/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/apache/incubator-mxnet/labels{/name}","releases_url":"https://api.github.com/repos/apache/incubator-mxnet/releases{/id}","deployments_url":"https://api.github.com/repos/apache/incubator-mxnet/deployments","created_at":"2015-04-30T16:21:15Z","updated_at":"2018-04-18T12:18:51Z","pushed_at":"2018-04-18T14:23:42Z","git_url":"git://github.com/apache/incubator-mxnet.git","ssh_url":"git@github.com:apache/incubator-mxnet.git","clone_url":"https://github.com/apache/incubator-mxnet.git","svn_url":"https://github.com/apache/incubator-mxnet","homepage":"http://mxnet.io","size":35244,"stargazers_count":13710,"watchers_count":13710,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":5070,"mirror_url":null,"archived":false,"open_issues_count":859,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":5070,"open_issues":859,"watchers":13710,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/apache/incubator-mxnet/pulls/10604"},"html":{"href":"https://github.com/apache/incubator-mxnet/pull/10604"},"issue":{"href":"https://api.github.com/repos/apache/incubator-mxnet/issues/10604"},"comments":{"href":"https://api.github.com/repos/apache/incubator-mxnet/issues/10604/comments"},"review_comments":{"href":"https://api.github.com/repos/apache/incubator-mxnet/pulls/10604/comments"},"review_comment":{"href":"https://api.github.com/repos/apache/incubator-mxnet/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/apache/incubator-mxnet/pulls/10604/commits"},"statuses":{"href":"https://api.github.com/repos/apache/incubator-mxnet/statuses/be05e37b05af61a542a66c68b7ca74f23a3aabe2"}},"author_association":"NONE","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":1,"additions":7,"deletions":3,"changed_files":1}}
{"actor":{"display_login":"ariwaranosai"}}