-
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
refine docs of elementwise_op etc. #11369
Conversation
python/paddle/fluid/layers/nn.py
Outdated
@@ -1409,7 +1409,7 @@ def sequence_pool(input, pool_type): | |||
|
|||
def sequence_first_step(input): | |||
""" | |||
This funciton get the first step of sequence. | |||
This function get the first step of sequence. |
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.
get->gets
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.
Done
python/paddle/fluid/layers/nn.py
Outdated
@@ -1442,7 +1442,7 @@ def sequence_first_step(input): | |||
|
|||
def sequence_last_step(input): | |||
""" | |||
This funciton get the last step of sequence. | |||
This function get the last step of sequence. |
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.
gets
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.
Done
set to index of the start dimension to broadcast $Y$ onto $X$. | ||
1. Broadcast $Y$ to match the shape of $X$, where $axis$ is the start dimension index | ||
for broadcasting $Y$ onto $X$. | ||
2. If $axis$ is -1 (default), $axis = rank(X) - rank(Y)$. |
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.
Need an example when axis=-1
?
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.
Done
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
格式范例:https://github.com/PaddlePaddle/Paddle/blob/develop/doc/fluid/dev/src/fc.py |
@skylarch |
fix #9188
refine the format and docs of elementwise_xxx_op.
fix typo of sequence_first/last_step.