{"action":"created","issue":{"url":"https://api.github.com/repos/PaddlePaddle/models/issues/75","repository_url":"https://api.github.com/repos/PaddlePaddle/models","labels_url":"https://api.github.com/repos/PaddlePaddle/models/issues/75/labels{/name}","comments_url":"https://api.github.com/repos/PaddlePaddle/models/issues/75/comments","events_url":"https://api.github.com/repos/PaddlePaddle/models/issues/75/events","html_url":"https://github.com/PaddlePaddle/models/issues/75","id":234136593,"number":75,"title":"Support variable input batch and SortaGrad for deep speech2.","user":{"login":"qingqing01","id":7845005,"avatar_url":"https://avatars3.githubusercontent.com/u/7845005?v=3","gravatar_id":"","url":"https://api.github.com/users/qingqing01","html_url":"https://github.com/qingqing01","followers_url":"https://api.github.com/users/qingqing01/followers","following_url":"https://api.github.com/users/qingqing01/following{/other_user}","gists_url":"https://api.github.com/users/qingqing01/gists{/gist_id}","starred_url":"https://api.github.com/users/qingqing01/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/qingqing01/subscriptions","organizations_url":"https://api.github.com/users/qingqing01/orgs","repos_url":"https://api.github.com/users/qingqing01/repos","events_url":"https://api.github.com/users/qingqing01/events{/privacy}","received_events_url":"https://api.github.com/users/qingqing01/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-06-07T08:50:34Z","updated_at":"2017-06-07T09:01:46Z","closed_at":null,"body":""},"comment":{"url":"https://api.github.com/repos/PaddlePaddle/models/issues/comments/306735095","html_url":"https://github.com/PaddlePaddle/models/issues/75#issuecomment-306735095","issue_url":"https://api.github.com/repos/PaddlePaddle/models/issues/75","id":306735095,"user":{"login":"qingqing01","id":7845005,"avatar_url":"https://avatars3.githubusercontent.com/u/7845005?v=3","gravatar_id":"","url":"https://api.github.com/users/qingqing01","html_url":"https://github.com/qingqing01","followers_url":"https://api.github.com/users/qingqing01/followers","following_url":"https://api.github.com/users/qingqing01/following{/other_user}","gists_url":"https://api.github.com/users/qingqing01/gists{/gist_id}","starred_url":"https://api.github.com/users/qingqing01/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/qingqing01/subscriptions","organizations_url":"https://api.github.com/users/qingqing01/orgs","repos_url":"https://api.github.com/users/qingqing01/repos","events_url":"https://api.github.com/users/qingqing01/events{/privacy}","received_events_url":"https://api.github.com/users/qingqing01/received_events","type":"User","site_admin":false},"created_at":"2017-06-07T09:01:46Z","updated_at":"2017-06-07T09:01:46Z","body":"1. 对所有样本做shuffle，组batch，padding到batch内的最大width.\r\n    width的统计分布图：\r\n    \r\n![width_shuffled](https://user-images.githubusercontent.com/7845005/26870194-c06a5db0-4ba1-11e7-8f8a-0ca819eac6c6.png)\r\n\r\n2. 对所有样本按照duration排序，组batch，padding到batch内的最大width.\r\n    width的统计分布图：\r\n    \r\n![width_sorted](https://user-images.githubusercontent.com/7845005/26870278-0f62fb20-4ba2-11e7-94db-24c6c239c74e.png)\r\n\r\n有上面图对比，如果shuffle，每个batch的width都相对较大，为了计算效率，还是需要排序。\r\n\r\n准备在ds2里采用的方法：\r\n1). 每个epoc随机跳过k个样本，k属于(0, batch_size-1)\r\n2). 1)之后组batch，batch间shuffle."}}
{"actor":{"display_login":"qingqing01"}}