-
Notifications
You must be signed in to change notification settings - Fork 5.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ctc grad scale same with espnet #34729
Conversation
Hi, It's a test PR, it will not trigger CI. If you want to trigger CI, please remove |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
与ESPNet行为进一步验证,命名风格需统一。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM for skip_check_grad_ci
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
This reverts commit 10f9644.
This reverts commit 10f9644.
* Revert "Align CTC grad scale same with ESPNet (PaddlePaddle#34729)" This reverts commit 10f9644. * ctc grad compute on gpu
PR types
New features
PR changes
OPs
Describe
CTC 算 loss有两种norm方式,一种是 batch_size 的 reduce,一种是 element_wise 的reduce。
这个PR是修正这两种 norm 方式下 ctc grad 的计算。
目前 paddle 的 norm 方式和 espnet 是有差异的,而且现在实现的方式并不常用。
所以新增两种 norm 方式,具体实现同 https://github.com/espnet/warp-ctc/blob/pytorch_bindings/pytorch_binding/warpctc_pytorch/__init__.py#L39
具体使用时需要用户自己根据使用的norm方式选在对应的选项对 grad 做处理。
修改文件过多是因为 ctc 实现了 LodTensor。
doc fix ctc api for #34729 docs#3709
grad支持GPU操作
espnet:
paddle:
paddle-gpu:
paddle-cpu vs paddle-gpu
测试case和espnet不同