{"action":"created","comment":{"url":"https://api.github.com/repos/apache/incubator-mxnet/pulls/comments/231991427","pull_request_review_id":173083656,"id":231991427,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzMTk5MTQyNw==","diff_hunk":"@@ -118,6 +119,23 @@ def test_resize_short(self):\n                     mx_resized = mx.image.resize_short(mx_img, new_size, interp)\n                     assert_almost_equal(mx_resized.asnumpy()[:, :, (2, 1, 0)], cv_resized, atol=3)\n \n+    @with_seed()\n+    def test_imresize(self):\n+        try:\n+            import cv2\n+        except ImportError:\n+            raise unittest.SkipTest(\"Unable to import cv2\")\n+        for img in TestImage.IMAGES:\n+            cv_img = cv2.imread(img)\n+            mx_img = mx.nd.array(cv_img[:, :, (2, 1, 0)])\n+            for _ in range(3):\n+                new_h = np.random.randint(1, 1000)\n+                new_w = np.random.randint(1, 1000)\n+                for interp in range(0, 2):\n+                    cv_resized = cv2.resize(cv_img, (new_w, new_h), interpolation=interp)\n+                    mx_resized = mx.image.imresize(mx_img, new_w, new_h, interp)","path":"tests/python/unittest/test_image.py","position":41,"original_position":41,"commit_id":"d34d040f4524406728ef5ffeffa1437da0e0384a","original_commit_id":"d34d040f4524406728ef5ffeffa1437da0e0384a","user":{"login":"anirudhacharya","id":2778341,"node_id":"MDQ6VXNlcjI3NzgzNDE=","avatar_url":"https://avatars0.githubusercontent.com/u/2778341?v=4","gravatar_id":"","url":"https://api.github.com/users/anirudhacharya","html_url":"https://github.com/anirudhacharya","followers_url":"https://api.github.com/users/anirudhacharya/followers","following_url":"https://api.github.com/users/anirudhacharya/following{/other_user}","gists_url":"https://api.github.com/users/anirudhacharya/gists{/gist_id}","starred_url":"https://api.github.com/users/anirudhacharya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anirudhacharya/subscriptions","organizations_url":"https://api.github.com/users/anirudhacharya/orgs","repos_url":"https://api.github.com/users/anirudhacharya/repos","events_url":"https://api.github.com/users/anirudhacharya/events{/privacy}","received_events_url":"https://api.github.com/users/anirudhacharya/received_events","type":"User","site_admin":false},"body":"i can add that test.","created_at":"2018-11-08T17:31:06Z","updated_at":"2018-11-08T17:31:06Z","html_url":"https://github.com/apache/incubator-mxnet/pull/12831#discussion_r231991427","pull_request_url":"https://api.github.com/repos/apache/incubator-mxnet/pulls/12831","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/apache/incubator-mxnet/pulls/comments/231991427"},"html":{"href":"https://github.com/apache/incubator-mxnet/pull/12831#discussion_r231991427"},"pull_request":{"href":"https://api.github.com/repos/apache/incubator-mxnet/pulls/12831"}},"in_reply_to_id":231762347},"pull_request":{"url":"https://api.github.com/repos/apache/incubator-mxnet/pulls/12831","id":223080656,"node_id":"MDExOlB1bGxSZXF1ZXN0MjIzMDgwNjU2","html_url":"https://github.com/apache/incubator-mxnet/pull/12831","diff_url":"https://github.com/apache/incubator-mxnet/pull/12831.diff","patch_url":"https://github.com/apache/incubator-mxnet/pull/12831.patch","issue_url":"https://api.github.com/repos/apache/incubator-mxnet/issues/12831","number":12831,"state":"open","locked":false,"title":"Add imresize to mxnet.image documentation","user":{"login":"anirudhacharya","id":2778341,"node_id":"MDQ6VXNlcjI3NzgzNDE=","avatar_url":"https://avatars0.githubusercontent.com/u/2778341?v=4","gravatar_id":"","url":"https://api.github.com/users/anirudhacharya","html_url":"https://github.com/anirudhacharya","followers_url":"https://api.github.com/users/anirudhacharya/followers","following_url":"https://api.github.com/users/anirudhacharya/following{/other_user}","gists_url":"https://api.github.com/users/anirudhacharya/gists{/gist_id}","starred_url":"https://api.github.com/users/anirudhacharya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anirudhacharya/subscriptions","organizations_url":"https://api.github.com/users/anirudhacharya/orgs","repos_url":"https://api.github.com/users/anirudhacharya/repos","events_url":"https://api.github.com/users/anirudhacharya/events{/privacy}","received_events_url":"https://api.github.com/users/anirudhacharya/received_events","type":"User","site_admin":false},"body":"## Description ##\r\nThough `mx.image.imresize` is currently available for external use, it does not show up in the docs because it was hidden behind an internal function call. \r\n\r\nFixes https://github.com/apache/incubator-mxnet/issues/13090\r\n\r\n## Checklist ##\r\n### Essentials ###\r\nPlease feel free to remove inapplicable items for your PR.\r\n- [ ] The PR title starts with [MXNET-$JIRA_ID], where $JIRA_ID refers to the relevant [JIRA issue](https://issues.apache.org/jira/projects/MXNET/issues) created (except PRs with tiny changes)\r\n- [x] Changes are complete (i.e. I finished coding on this PR)\r\n- [x] All changes have test coverage:\r\n- Unit tests are added for small changes to verify correctness (e.g. adding a new operator)\r\n- Nightly tests are added for complicated/long-running ones (e.g. changing distributed kvstore)\r\n- Build tests will be added for build configuration changes (e.g. adding a new build option with NCCL)\r\n- [x] Code is well-documented: \r\n- For user-facing API changes, API doc string has been updated. \r\n- For new C++ functions in header files, their functionalities and arguments are documented. \r\n- For new examples, README.md is added to explain the what the example does, the source of the dataset, expected performance on test set and reference to the original paper if applicable\r\n- Check the API doc at http://mxnet-ci-doc.s3-accelerate.dualstack.amazonaws.com/PR-$PR_ID/$BUILD_ID/index.html\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- imresize\r\n","created_at":"2018-10-16T00:22:14Z","updated_at":"2018-11-08T17:31:06Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2b2e0cd3112dbb293005eee2184001eab0377583","assignee":null,"assignees":[],"requested_reviewers":[{"login":"szha","id":2626883,"node_id":"MDQ6VXNlcjI2MjY4ODM=","avatar_url":"https://avatars2.githubusercontent.com/u/2626883?v=4","gravatar_id":"","url":"https://api.github.com/users/szha","html_url":"https://github.com/szha","followers_url":"https://api.github.com/users/szha/followers","following_url":"https://api.github.com/users/szha/following{/other_user}","gists_url":"https://api.github.com/users/szha/gists{/gist_id}","starred_url":"https://api.github.com/users/szha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/szha/subscriptions","organizations_url":"https://api.github.com/users/szha/orgs","repos_url":"https://api.github.com/users/szha/repos","events_url":"https://api.github.com/users/szha/events{/privacy}","received_events_url":"https://api.github.com/users/szha/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[{"id":707556117,"node_id":"MDU6TGFiZWw3MDc1NTYxMTc=","url":"https://api.github.com/repos/apache/incubator-mxnet/labels/Python","name":"Python","color":"0052cc","default":false},{"id":1018799191,"node_id":"MDU6TGFiZWwxMDE4Nzk5MTkx","url":"https://api.github.com/repos/apache/incubator-mxnet/labels/pr-awaiting-response","name":"pr-awaiting-response","color":"fbca04","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/apache/incubator-mxnet/pulls/12831/commits","review_comments_url":"https://api.github.com/repos/apache/incubator-mxnet/pulls/12831/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/12831/comments","statuses_url":"https://api.github.com/repos/apache/incubator-mxnet/statuses/d34d040f4524406728ef5ffeffa1437da0e0384a","head":{"label":"anirudhacharya:resizeDocs","ref":"resizeDocs","sha":"d34d040f4524406728ef5ffeffa1437da0e0384a","user":{"login":"anirudhacharya","id":2778341,"node_id":"MDQ6VXNlcjI3NzgzNDE=","avatar_url":"https://avatars0.githubusercontent.com/u/2778341?v=4","gravatar_id":"","url":"https://api.github.com/users/anirudhacharya","html_url":"https://github.com/anirudhacharya","followers_url":"https://api.github.com/users/anirudhacharya/followers","following_url":"https://api.github.com/users/anirudhacharya/following{/other_user}","gists_url":"https://api.github.com/users/anirudhacharya/gists{/gist_id}","starred_url":"https://api.github.com/users/anirudhacharya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anirudhacharya/subscriptions","organizations_url":"https://api.github.com/users/anirudhacharya/orgs","repos_url":"https://api.github.com/users/anirudhacharya/repos","events_url":"https://api.github.com/users/anirudhacharya/events{/privacy}","received_events_url":"https://api.github.com/users/anirudhacharya/received_events","type":"User","site_admin":false},"repo":{"id":117884006,"node_id":"MDEwOlJlcG9zaXRvcnkxMTc4ODQwMDY=","name":"incubator-mxnet","full_name":"anirudhacharya/incubator-mxnet","private":false,"owner":{"login":"anirudhacharya","id":2778341,"node_id":"MDQ6VXNlcjI3NzgzNDE=","avatar_url":"https://avatars0.githubusercontent.com/u/2778341?v=4","gravatar_id":"","url":"https://api.github.com/users/anirudhacharya","html_url":"https://github.com/anirudhacharya","followers_url":"https://api.github.com/users/anirudhacharya/followers","following_url":"https://api.github.com/users/anirudhacharya/following{/other_user}","gists_url":"https://api.github.com/users/anirudhacharya/gists{/gist_id}","starred_url":"https://api.github.com/users/anirudhacharya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anirudhacharya/subscriptions","organizations_url":"https://api.github.com/users/anirudhacharya/orgs","repos_url":"https://api.github.com/users/anirudhacharya/repos","events_url":"https://api.github.com/users/anirudhacharya/events{/privacy}","received_events_url":"https://api.github.com/users/anirudhacharya/received_events","type":"User","site_admin":false},"html_url":"https://github.com/anirudhacharya/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/anirudhacharya/incubator-mxnet","forks_url":"https://api.github.com/repos/anirudhacharya/incubator-mxnet/forks","keys_url":"https://api.github.com/repos/anirudhacharya/incubator-mxnet/keys{/key_id}","collaborators_url":"https://api.github.com/repos/anirudhacharya/incubator-mxnet/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/anirudhacharya/incubator-mxnet/teams","hooks_url":"https://api.github.com/repos/anirudhacharya/incubator-mxnet/hooks","issue_events_url":"https://api.github.com/repos/anirudhacharya/incubator-mxnet/issues/events{/number}","events_url":"https://api.github.com/repos/anirudhacharya/incubator-mxnet/events","assignees_url":"https://api.github.com/repos/anirudhacharya/incubator-mxnet/assignees{/user}","branches_url":"https://api.github.com/repos/anirudhacharya/incubator-mxnet/branches{/branch}","tags_url":"https://api.github.com/repos/anirudhacharya/incubator-mxnet/tags","blobs_url":"https://api.github.com/repos/anirudhacharya/incubator-mxnet/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/anirudhacharya/incubator-mxnet/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/anirudhacharya/incubator-mxnet/git/refs{/sha}","trees_url":"https://api.github.com/repos/anirudhacharya/incubator-mxnet/git/trees{/sha}","statuses_url":"https://api.github.com/repos/anirudhacharya/incubator-mxnet/statuses/{sha}","languages_url":"https://api.github.com/repos/anirudhacharya/incubator-mxnet/languages","stargazers_url":"https://api.github.com/repos/anirudhacharya/incubator-mxnet/stargazers","contributors_url":"https://api.github.com/repos/anirudhacharya/incubator-mxnet/contributors","subscribers_url":"https://api.github.com/repos/anirudhacharya/incubator-mxnet/subscribers","subscription_url":"https://api.github.com/repos/anirudhacharya/incubator-mxnet/subscription","commits_url":"https://api.github.com/repos/anirudhacharya/incubator-mxnet/commits{/sha}","git_commits_url":"https://api.github.com/repos/anirudhacharya/incubator-mxnet/git/commits{/sha}","comments_url":"https://api.github.com/repos/anirudhacharya/incubator-mxnet/comments{/number}","issue_comment_url":"https://api.github.com/repos/anirudhacharya/incubator-mxnet/issues/comments{/number}","contents_url":"https://api.github.com/repos/anirudhacharya/incubator-mxnet/contents/{+path}","compare_url":"https://api.github.com/repos/anirudhacharya/incubator-mxnet/compare/{base}...{head}","merges_url":"https://api.github.com/repos/anirudhacharya/incubator-mxnet/merges","archive_url":"https://api.github.com/repos/anirudhacharya/incubator-mxnet/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/anirudhacharya/incubator-mxnet/downloads","issues_url":"https://api.github.com/repos/anirudhacharya/incubator-mxnet/issues{/number}","pulls_url":"https://api.github.com/repos/anirudhacharya/incubator-mxnet/pulls{/number}","milestones_url":"https://api.github.com/repos/anirudhacharya/incubator-mxnet/milestones{/number}","notifications_url":"https://api.github.com/repos/anirudhacharya/incubator-mxnet/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/anirudhacharya/incubator-mxnet/labels{/name}","releases_url":"https://api.github.com/repos/anirudhacharya/incubator-mxnet/releases{/id}","deployments_url":"https://api.github.com/repos/anirudhacharya/incubator-mxnet/deployments","created_at":"2018-01-17T19:39:44Z","updated_at":"2018-11-06T18:04:04Z","pushed_at":"2018-11-07T20:32:30Z","git_url":"git://github.com/anirudhacharya/incubator-mxnet.git","ssh_url":"git@github.com:anirudhacharya/incubator-mxnet.git","clone_url":"https://github.com/anirudhacharya/incubator-mxnet.git","svn_url":"https://github.com/anirudhacharya/incubator-mxnet","homepage":"http://mxnet.io","size":48137,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"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","node_id":"MDc6TGljZW5zZTI="},"forks":1,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"apache:master","ref":"master","sha":"137b6f588e90f42d0c3b10514686a982250fdd7e","user":{"login":"apache","id":47359,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ3MzU5","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,"node_id":"MDEwOlJlcG9zaXRvcnkzNDg2NDQwMg==","name":"incubator-mxnet","full_name":"apache/incubator-mxnet","private":false,"owner":{"login":"apache","id":47359,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ3MzU5","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},"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-11-08T16:39:20Z","pushed_at":"2018-11-08T17:28:37Z","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":"https://mxnet.apache.org","size":47722,"stargazers_count":15542,"watchers_count":15542,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":5613,"mirror_url":null,"archived":false,"open_issues_count":1011,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":5613,"open_issues":1011,"watchers":15542,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/apache/incubator-mxnet/pulls/12831"},"html":{"href":"https://github.com/apache/incubator-mxnet/pull/12831"},"issue":{"href":"https://api.github.com/repos/apache/incubator-mxnet/issues/12831"},"comments":{"href":"https://api.github.com/repos/apache/incubator-mxnet/issues/12831/comments"},"review_comments":{"href":"https://api.github.com/repos/apache/incubator-mxnet/pulls/12831/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/12831/commits"},"statuses":{"href":"https://api.github.com/repos/apache/incubator-mxnet/statuses/d34d040f4524406728ef5ffeffa1437da0e0384a"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"anirudhacharya"}}