-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Add doc for lod_rank_table. #7128
Conversation
""" | ||
This function creates an operator for creating a LOD_RANK_TABLE | ||
using the input x. | ||
"""LoD Rank Table Operator. Given an input variable `x` and a LoD level, |
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.
LoD level
==> number of Lod level
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.
using the input x. | ||
"""LoD Rank Table Operator. Given an input variable `x` and a LoD level, | ||
this layer creates a LodRankTable object. A LoDRankTable object contains a | ||
list of bi-element tuples and each tuple consists of an index and a length. |
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.
each tuple consists of an index and a length, both of them are int.
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.
"""LoD Rank Table Operator. Given an input variable `x` and a LoD level, | ||
this layer creates a LodRankTable object. A LoDRankTable object contains a | ||
list of bi-element tuples and each tuple consists of an index and a length. | ||
For given level's LoD information, the index is the sequence position and |
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.
It's not easy to understand what is level's LoD information
.
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.
Args: | ||
x (Variable): Input variable, a LoDTensor based which to create the lod | ||
rank table. | ||
level (int): Specify the LoD level. |
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.
Specify on which LoD level create the LoDRankTable object.
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
Resolves #7024