Skip to content
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

Closed
wants to merge 3 commits into from

Conversation

wawltor
Copy link
Contributor

@wawltor wawltor commented Jul 8, 2020

PR types

Others

PR changes

APIs

Describe

Fix the compare ops for api 2.0,add dygraph sample

@paddle-bot-old
Copy link

paddle-bot-old bot commented Jul 8, 2020

Thanks for your contribution!
Please wait for the result of CI firstly. See Paddle CI Manual for details.

@@ -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):
Copy link
Contributor

Choose a reason for hiding this comment

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

  1. name=None可以放到cond=None的后面,保证兼容性
  2. name参数会在哪里被使用?

Copy link
Contributor Author

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);
Copy link
Contributor

Choose a reason for hiding this comment

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

修改了原OP的行为,是否会影响兼容性?

Copy link
Contributor Author

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);
Copy link
Contributor

Choose a reason for hiding this comment

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

修改了原OP的参数,是否会影响兼容性?

@paddle-bot-old paddle-bot-old bot closed this Sep 14, 2021
@paddle-bot-old
Copy link

Since you haven't replied for more than a year, we have closed this issue/pr.
If the problem is not solved or there is a follow-up one, please reopen it at any time and we will continue to follow up.
由于您超过一年未回复,我们将关闭这个issue/pr。
若问题未解决或有后续问题,请随时重新打开,我们会继续跟进。

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.

None yet

2 participants