{"action":"created","issue":{"url":"https://api.github.com/repos/apache/incubator-mxnet/issues/11844","repository_url":"https://api.github.com/repos/apache/incubator-mxnet","labels_url":"https://api.github.com/repos/apache/incubator-mxnet/issues/11844/labels{/name}","comments_url":"https://api.github.com/repos/apache/incubator-mxnet/issues/11844/comments","events_url":"https://api.github.com/repos/apache/incubator-mxnet/issues/11844/events","html_url":"https://github.com/apache/incubator-mxnet/pull/11844","id":343262366,"node_id":"MDExOlB1bGxSZXF1ZXN0MjAyOTY3Nzc3","number":11844,"title":"[MXNET-689] add DataDesc type for the Scala Package","user":{"login":"lanking520","id":11890922,"node_id":"MDQ6VXNlcjExODkwOTIy","avatar_url":"https://avatars0.githubusercontent.com/u/11890922?v=4","gravatar_id":"","url":"https://api.github.com/users/lanking520","html_url":"https://github.com/lanking520","followers_url":"https://api.github.com/users/lanking520/followers","following_url":"https://api.github.com/users/lanking520/following{/other_user}","gists_url":"https://api.github.com/users/lanking520/gists{/gist_id}","starred_url":"https://api.github.com/users/lanking520/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lanking520/subscriptions","organizations_url":"https://api.github.com/users/lanking520/orgs","repos_url":"https://api.github.com/users/lanking520/repos","events_url":"https://api.github.com/users/lanking520/events{/privacy}","received_events_url":"https://api.github.com/users/lanking520/received_events","type":"User","site_admin":false},"labels":[{"id":337768593,"node_id":"MDU6TGFiZWwzMzc3Njg1OTM=","url":"https://api.github.com/repos/apache/incubator-mxnet/labels/Scala","name":"Scala","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}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":12,"created_at":"2018-07-20T22:13:37Z","updated_at":"2018-08-13T05:16:51Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/apache/incubator-mxnet/pulls/11844","html_url":"https://github.com/apache/incubator-mxnet/pull/11844","diff_url":"https://github.com/apache/incubator-mxnet/pull/11844.diff","patch_url":"https://github.com/apache/incubator-mxnet/pull/11844.patch"},"body":"## Description ##\r\nThis PR includes massive changes on all Iterators that extends `DataIter`, two new fields are added (`dtype` and `layout`).\r\n\r\n@nswamy @yzhliu @andrewfayres \r\n\r\nIt intends to solve some issues about the layout information missing in DataDesc. However I found it hard to have a general solution that both address backward compatibility as well as adding this information. Currently, there are several ways to address this issue:\r\n\r\n1. Assume Shape == 2 follows `NT` format, Shape == 3 follows `TNC`, Shape == 4 follows `NCHW` and only change the implicit function in [here](https://github.com/apache/incubator-mxnet/blob/master/scala-package/core/src/main/scala/org/apache/mxnet/IO.scala#L358-L363).\r\n\r\n2. This PR: add `Layout` and `DType` defs for all iterator, then users can pass these information to create `DataDesc` instead of `ListMap[Name, Shape]`. However, it breaks the input args for `NDArrayIter` as well as other iterators. Users are required to add more inputs. However, if the iterator are passed in with dynamic shapes (shapes are not determined), it will break the DataDesc checking scheme.\r\n\r\nHistorical issues:\r\n- https://github.com/apache/incubator-mxnet/issues/11775\r\n- [MLP problem](https://github.com/apache/incubator-mxnet/issues/10753)\r\n- [RNN problem](https://github.com/apache/incubator-mxnet/issues/11571)\r\n\r\n## Checklist ##\r\n### Essentials ###\r\nPlease feel free to remove inapplicable items for your PR.\r\n- [x] 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- [ ] 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"},"comment":{"url":"https://api.github.com/repos/apache/incubator-mxnet/issues/comments/412410594","html_url":"https://github.com/apache/incubator-mxnet/pull/11844#issuecomment-412410594","issue_url":"https://api.github.com/repos/apache/incubator-mxnet/issues/11844","id":412410594,"node_id":"MDEyOklzc3VlQ29tbWVudDQxMjQxMDU5NA==","user":{"login":"lanking520","id":11890922,"node_id":"MDQ6VXNlcjExODkwOTIy","avatar_url":"https://avatars0.githubusercontent.com/u/11890922?v=4","gravatar_id":"","url":"https://api.github.com/users/lanking520","html_url":"https://github.com/lanking520","followers_url":"https://api.github.com/users/lanking520/followers","following_url":"https://api.github.com/users/lanking520/following{/other_user}","gists_url":"https://api.github.com/users/lanking520/gists{/gist_id}","starred_url":"https://api.github.com/users/lanking520/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lanking520/subscriptions","organizations_url":"https://api.github.com/users/lanking520/orgs","repos_url":"https://api.github.com/users/lanking520/repos","events_url":"https://api.github.com/users/lanking520/events{/privacy}","received_events_url":"https://api.github.com/users/lanking520/received_events","type":"User","site_admin":false},"created_at":"2018-08-13T05:16:51Z","updated_at":"2018-08-13T05:16:51Z","author_association":"CONTRIBUTOR","body":"@nswamy @yzhliu thanks for your second phase of CR, I have applied changes:\r\n\r\n- DataBatch: Use `IndexSeq[DataDesc]` to replace ListMap\r\n- Remove getLayout and getDType in all of the code portion (seemed not being used)"}}
{"actor":{"display_login":"lanking520"}}