Skip to content

Conversation

@NKNaN
Copy link
Contributor

@NKNaN NKNaN commented Jun 14, 2025

paddle.scale 只对 x 计算梯度
image

而 ScaleRule 中对应的 torch_api 是组合实现的
image

因此对scale或bias的梯度检查都会产生 [no compare]。
如果不额外为 scale kernel 增加反向算子的话则设置额外的 accuracy 检查规则

回测结果:
image

Copy link
Collaborator

@cangtianhuang cangtianhuang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@wanghuancoder wanghuancoder merged commit 9fd7f3b into PFCCLab:main Jun 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants