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

Refine evaluator op types #5208

Merged
merged 9 commits into from
Oct 31, 2017

Conversation

typhoonzero
Copy link
Contributor

Update and refine accuracy and auc op.

PADDLE_ENFORCE(ctx->HasInput("Label"),
"Input(Label) of AccuracyOp should not be null.");
"Input(Label) of accuracy op should not be null.");
Copy link
Collaborator

Choose a reason for hiding this comment

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

在英语里,括号和之前的词之间应该有一个空格。

auto label_dim = ctx->GetInputDim("Label");
// assume indices has same shape with infernece, because
Copy link
Collaborator

Choose a reason for hiding this comment

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

既然句末有句号,句首字母应该大写。

PADDLE_ENFORCE_EQ(inference_dim[0], label_dim[0],
"inference size must be the same as label size");
"inference height must be the same as label.");
Copy link
Collaborator

Choose a reason for hiding this comment

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

什么是inference height?是想说“推测出来的高度“吗?如果是,应该是 inferred height.

PADDLE_ENFORCE_EQ(inference_dim[0], label_dim[0],
"inference size must be the same as label size");
"inference height must be the same as label.");
Copy link
Collaborator

Choose a reason for hiding this comment

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

另外,height 是什么意思呢?如果是说matrix的大小,那么有num_rows, num_columns之说。

Copy link
Contributor Author

Choose a reason for hiding this comment

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

嗯嗯,是matrix的大小。以上Comment都已更新,感谢review!

Copy link
Contributor

@luotao1 luotao1 left a comment

Choose a reason for hiding this comment

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

LGTM

@typhoonzero typhoonzero merged commit 878dd88 into PaddlePaddle:develop Oct 31, 2017
zchen0211 pushed a commit to zchen0211/Paddle that referenced this pull request Oct 31, 2017
* refine evaluator op types

* update

* follow comments

* update

* fix v2 mnist case

* fix v2 mnist case

* update

* update
@typhoonzero typhoonzero deleted the refine_evaluator_ops branch December 22, 2017 05:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants