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

Compare Operator #5325

Merged
merged 4 commits into from
Nov 7, 2017
Merged

Compare Operator #5325

merged 4 commits into from
Nov 7, 2017

Conversation

reyoung
Copy link
Collaborator

@reyoung reyoung commented Nov 2, 2017

operator less_than and equal

@reyoung reyoung requested a review from QiJune November 2, 2017 22:09
};

template <typename OpComment>
class LogicalOpInferShape : public framework::InferShapeBase {
Copy link
Member

Choose a reason for hiding this comment

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

BinaryLogicalOpInferShape

namespace paddle {
namespace operators {
template <typename OpComment>
class LogicalOpProtoMaker : public framework::OpProtoAndCheckerMaker {
Copy link
Member

Choose a reason for hiding this comment

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

Maybe BinaryLogicalOpProtoMaker is more accurate.

PADDLE_ENFORCE(context->HasInput("X"), "%s operator must has input X",
comment.type);
PADDLE_ENFORCE(context->HasInput("Y"), "%s operator must has input Y",
comment.type);

Choose a reason for hiding this comment

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

enforce X and Y to have the same shape.

Copy link
Member

@QiJune QiJune left a comment

Choose a reason for hiding this comment

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

LGTM

@reyoung reyoung merged commit f74fb79 into PaddlePaddle:develop Nov 7, 2017
@reyoung reyoung deleted the feature/logical_op branch December 26, 2017 09:32
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

3 participants