-
Notifications
You must be signed in to change notification settings - Fork 5.9k
[View] Change view_shape_grad to use invoke view_shape
#71086
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
[View] Change view_shape_grad to use invoke view_shape
#71086
Conversation
|
你的PR提交成功,感谢你对开源项目的贡献! |
view_reshape_grad to use invoke view_reshape for high-order de…
view_reshape_grad to use invoke view_reshape for high-order de…view_reshape_grad to use invoke view_reshape
view_reshape_grad to use invoke view_reshape view_shape_grad to use invoke view_shape
wanghuancoder
left a comment
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
| kernel : | ||
| func : view_shape | ||
| backward : view_shape_grad | ||
| interfaces : paddle::dialect::InferSymbolicShapeInterface |
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.
动态图算子不需要配置 interfaces
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.
已删除
Remove `paddle::dialect::InferSymbolicShapeInterface` for view_shape
…dle#71086) * change view_reshape_grad to use invoke view_reshape for high-order derivative * remove unecessary attrs when generating nodes.cc * Update dygraph_ops.yaml Remove `paddle::dialect::InferSymbolicShapeInterface` for view_shape
…dle#71086) * change view_reshape_grad to use invoke view_reshape for high-order derivative * remove unecessary attrs when generating nodes.cc * Update dygraph_ops.yaml Remove `paddle::dialect::InferSymbolicShapeInterface` for view_shape
PR Category
Operator Mechanism
PR Types
New features
Description
Pcard-75624
make_dual和unpack_dual需要使用view算子保持梯度并避免不必要的拷贝,因此将view运算的反向算子改为复用前向算子,从而支持科学计算场景下高阶微分的需求