-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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 doc of clip op. #4422
Fix doc of clip op. #4422
Conversation
paddle/operators/clip_op.cc
Outdated
@@ -43,7 +45,7 @@ class ClipOpMaker : public framework::OpProtoAndCheckerMaker { | |||
: OpProtoAndCheckerMaker(proto, op_checker) { | |||
AddInput("X", | |||
"(Tensor)The input of clip op." | |||
"The input should be a k-D tensor(k > 0 and k < 7)"); | |||
"The dimension size of input tensor must be between [1, 9]."); |
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.
dimension size => number of dimensions
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.
Thx.
paddle/operators/clip_op.cc
Outdated
@@ -17,6 +17,8 @@ | |||
namespace paddle { | |||
namespace operators { | |||
|
|||
using framework::LoDTensor; |
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.
This line seems not needed?
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.
Thx.
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
fix #4421