-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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
Refine evaluator op types #5208
Conversation
paddle/operators/accuracy_op.cc
Outdated
PADDLE_ENFORCE(ctx->HasInput("Label"), | ||
"Input(Label) of AccuracyOp should not be null."); | ||
"Input(Label) of accuracy op should not be null."); |
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/operators/accuracy_op.cc
Outdated
auto label_dim = ctx->GetInputDim("Label"); | ||
// assume indices has same shape with infernece, because |
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/operators/accuracy_op.cc
Outdated
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."); |
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.
什么是inference height?是想说“推测出来的高度“吗?如果是,应该是 inferred height.
paddle/operators/accuracy_op.cc
Outdated
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."); |
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.
另外,height 是什么意思呢?如果是说matrix的大小,那么有num_rows, num_columns之说。
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.
嗯嗯,是matrix的大小。以上Comment都已更新,感谢review!
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
* refine evaluator op types * update * follow comments * update * fix v2 mnist case * fix v2 mnist case * update * update
Update and refine
accuracy
andauc
op.