CARVIEW |
Navigation Menu
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
[PRIM][IR]support more vjp code gen #56890
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
[PRIM][IR]support more vjp code gen #56890
Conversation
你的PR提交成功,感谢你对开源项目的贡献! |
8b81675
to
8da9bc4
Compare
@@ -100,6 +100,7 @@ def test_divide_grad_prim_case1(self): | |||
] | |||
for idx, op in enumerate(newir_program.block().ops): | |||
self.assertEqual(op.name(), all_op_names[idx]) | |||
paddle.fluid.core._set_prim_backward_enabled(False) |
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.
paddle.framework.coer.xxx
@@ -145,6 +146,7 @@ def test_sum_grad_prim(self): | |||
] | |||
for idx, op in enumerate(newir_program.block().ops): | |||
self.assertEqual(op.name(), all_op_names[idx]) | |||
paddle.fluid.core._set_prim_backward_enabled(False) |
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.
paddle.framework.core.xxx
and attr['support_tensor'] is True | ||
): | ||
is_scalar(attr['typename']) or is_intarray(attr['typename']) | ||
) and attr['support_tensor'] is True: |
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.
attr['support_tensor'] is True -> attr['support_tensor']
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.
done
@@ -89,16 +89,14 @@ def is_tensor_list(s): | |||
def exist_mutable_attribute(attrs): |
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.
exist_mutable_attr 保持命名一执性,缩写全用缩写,全称全用全称,避免混用
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.
done
and attr['support_tensor'] is True | ||
) | ||
is_scalar(attr['typename']) or is_intarray(attr['typename']) | ||
) and attr['support_tensor'] is True |
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.
attr.get('support_tensor', False)
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.
done
8da9bc4
to
afbf678
Compare
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
PR types
New features
PR changes
Others
Description
Pcard-66975
support more vjp code gen in new ir.