-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Fix the compare ops for api 2.0, test=develop #25448
Conversation
Thanks for your contribution! |
@@ -1580,7 +1580,7 @@ def create_array(dtype): | |||
|
|||
|
|||
@templatedoc() | |||
def less_than(x, y, force_cpu=None, cond=None): | |||
def less_than(x, y, force_cpu=None, name=None, cond=None): |
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.
- name=None可以放到cond=None的后面,保证兼容性
- name参数会在哪里被使用?
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.
name是前期讨论过的共性问题,静态图中需要增加name这个参数
auto& place = *context.template device_context<platform::CPUDeviceContext>() | ||
.eigen_device(); | ||
auto reduce_dim = Eigen::array<int, 1>({{0}}); | ||
out.device(place) = ipt.all(reduce_dim); |
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.
修改了原OP的行为,是否会影响兼容性?
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.
修改了原OP的行为,是否会影响兼容性?
这个是paddle 2.0 alpha的新增的op,因此影响面还好
"axis", | ||
"The start dimension index for broadcasting Y onto X. [default -1]") | ||
.SetDefault(-1) | ||
.EqualGreaterThan(-1); |
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.
修改了原OP的参数,是否会影响兼容性?
Since you haven't replied for more than a year, we have closed this issue/pr. |
PR types
Others
PR changes
APIs
Describe
Fix the compare ops for api 2.0,add dygraph sample