{"action":"created","issue":{"url":"https://api.github.com/repos/dmlc/mxnet/issues/1450","repository_url":"https://api.github.com/repos/dmlc/mxnet","labels_url":"https://api.github.com/repos/dmlc/mxnet/issues/1450/labels{/name}","comments_url":"https://api.github.com/repos/dmlc/mxnet/issues/1450/comments","events_url":"https://api.github.com/repos/dmlc/mxnet/issues/1450/events","html_url":"https://github.com/dmlc/mxnet/pull/1450","id":133072617,"number":1450,"title":"Bucketing Model API","user":{"login":"pluskid","id":3542,"avatar_url":"https://avatars.githubusercontent.com/u/3542?v=3","gravatar_id":"","url":"https://api.github.com/users/pluskid","html_url":"https://github.com/pluskid","followers_url":"https://api.github.com/users/pluskid/followers","following_url":"https://api.github.com/users/pluskid/following{/other_user}","gists_url":"https://api.github.com/users/pluskid/gists{/gist_id}","starred_url":"https://api.github.com/users/pluskid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pluskid/subscriptions","organizations_url":"https://api.github.com/users/pluskid/orgs","repos_url":"https://api.github.com/users/pluskid/repos","events_url":"https://api.github.com/users/pluskid/events{/privacy}","received_events_url":"https://api.github.com/users/pluskid/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":12,"created_at":"2016-02-11T19:54:52Z","updated_at":"2016-02-14T03:05:56Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/dmlc/mxnet/pulls/1450","html_url":"https://github.com/dmlc/mxnet/pull/1450","diff_url":"https://github.com/dmlc/mxnet/pull/1450.diff","patch_url":"https://github.com/dmlc/mxnet/pull/1450.patch"},"body":"Bucketing API. In order to use the bucketing API, one need to add the following *extra* properties to data iter and data batch on top of any existing `DataIter`:\r\n\r\n- `DataIter`\r\n    - `default_bucket_key`: the bucket key for the default symbol.\r\n\r\n- `DataBatch`\r\n   - `provide_data`: same as `DataIter`, but specific to this batch\r\n   - `provide_label`: same as `DataIter`, but specific to this batch\r\n   - `bucket_key`: the key for the bucket that should be used for this batch\r\n\r\nThere is a simple sanity check example with mnist in `mnist_bucket.py` -- it creates 3 buckets which are all the same. It also serves a demonstration of how the API works.\r\n\r\nI will create an example with ptb language model to demonstrate how bucketing with variable-length sequence model works soon."},"comment":{"url":"https://api.github.com/repos/dmlc/mxnet/issues/comments/183810552","html_url":"https://github.com/dmlc/mxnet/pull/1450#issuecomment-183810552","issue_url":"https://api.github.com/repos/dmlc/mxnet/issues/1450","id":183810552,"user":{"login":"tqchen","id":2577440,"avatar_url":"https://avatars.githubusercontent.com/u/2577440?v=3","gravatar_id":"","url":"https://api.github.com/users/tqchen","html_url":"https://github.com/tqchen","followers_url":"https://api.github.com/users/tqchen/followers","following_url":"https://api.github.com/users/tqchen/following{/other_user}","gists_url":"https://api.github.com/users/tqchen/gists{/gist_id}","starred_url":"https://api.github.com/users/tqchen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tqchen/subscriptions","organizations_url":"https://api.github.com/users/tqchen/orgs","repos_url":"https://api.github.com/users/tqchen/repos","events_url":"https://api.github.com/users/tqchen/events{/privacy}","received_events_url":"https://api.github.com/users/tqchen/received_events","type":"User","site_admin":false},"created_at":"2016-02-14T03:05:56Z","updated_at":"2016-02-14T03:05:56Z","body":"more options -> cache on the up right corner"}}