-
Notifications
You must be signed in to change notification settings - Fork 5.9k
Update comments for two operators. #7457
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
Conversation
a2be67c to
c381560
Compare
c381560 to
473fd63
Compare
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.
not a sequence may not be proper. Something like not sequence data might be better.
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.
Should it be LOD_TENSOR_ARRAY or LoDTensor here
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. thank you.
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.
Should converted to a tensor be converted to a LoDTensor here
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.
The ouput should be The output.
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.
| The X = [Seq0, Seq1, Seq2, Seq3]. The indices of RankTable are [3, 0, 2, 1]. | ||
| The Out = [Seq3, Seq0, Seq2, Seq1] with correct LoD information. | ||
| If the indices stored in the Input(RankTable) is [3, 0, 2, 1], the |
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.
is -> are
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.
| The Out = [Seq3, Seq0, Seq2, Seq1] with correct LoD information. | ||
| If the indices stored in the Input(RankTable) is [3, 0, 2, 1], the | ||
| Input(X) will be reordered that the forth sequence in Input(X) will become the |
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.
forth -> fourth
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.
There is some language polishing needed. Apart from that everything looks good. Thank you for the PR!
| The Out = [Seq3, Seq0, Seq2, Seq1] with correct LoD information. | ||
| If the indices stored in the Input(RankTable) is [3, 0, 2, 1], the | ||
| Input(X) will be reordered that the forth sequence in Input(X) will become the | ||
| first one, and then followed by the originally first, third, and the second one. |
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.
originally -> original
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.
| Out = [Seq3, Seq0, Seq2, Seq1] with a new LoD information. | ||
| If the LoD information of Input(X) is empty, this means Input(X) is not a | ||
| sequcence. This is also identical to a batch of sequences each sequence in which |
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.
The sentence should be -> This is also identical to a batch of sequences where each sequence has a fixed length 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.
| indices in RankTable are [3, 0, 2, 1]. | ||
| Out = [Slice3, Slice0, Slice2, Slice1] with no LoD information is appended. | ||
| NOTE: This operator sorts Input(X) according to a given LoDRankTable which dose |
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.
dose -> does
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|list): The tensor that needs to be converted to an array. | ||
| x (Variable|list): The lod tensor to be converted to a lod tensor array. |
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 -> LOD
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.
| This function creates a tensor of specified *shape* and | ||
| *dtype*, and initializes this with a constant supplied in *value*. | ||
| This function creates a tensor with the specified `shape` 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.
You can drop the
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.
| This function creates a tensor of specified *shape* and | ||
| *dtype*, and initializes this with a constant supplied in *value*. | ||
| This function creates a tensor with the specified `shape` and | ||
| `dtype`, and initializes it with the constant specifed by `value`. |
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.
the -> a
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.
follow comments. Thanks for all the corrections.
| This function creates a tensor of specified *shape* and | ||
| *dtype*, and initializes this with a constant supplied in *value*. | ||
| This function creates a tensor with the specified `shape` 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.
Done.
| The X = [Seq0, Seq1, Seq2, Seq3]. The indices of RankTable are [3, 0, 2, 1]. | ||
| The Out = [Seq3, Seq0, Seq2, Seq1] with correct LoD information. | ||
| If the indices stored in the Input(RankTable) is [3, 0, 2, 1], the |
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.
| The Out = [Seq3, Seq0, Seq2, Seq1] with correct LoD information. | ||
| If the indices stored in the Input(RankTable) is [3, 0, 2, 1], the | ||
| Input(X) will be reordered that the forth sequence in Input(X) will become the | ||
| first one, and then followed by the originally first, third, and the second one. |
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.
Done.
| Out = [Seq3, Seq0, Seq2, Seq1] with a new LoD information. | ||
| If the LoD information of Input(X) is empty, this means Input(X) is not a | ||
| sequcence. This is also identical to a batch of sequences each sequence in which |
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.
| indices in RankTable are [3, 0, 2, 1]. | ||
| Out = [Slice3, Slice0, Slice2, Slice1] with no LoD information is appended. | ||
| NOTE: This operator sorts Input(X) according to a given LoDRankTable which dose |
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.
Done. thank you.
| Args: | ||
| x (Variable|list): The tensor that needs to be converted to an array. | ||
| x (Variable|list): The lod tensor to be converted to a lod tensor array. |
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.
Done.
| This function creates a tensor of specified *shape* and | ||
| *dtype*, and initializes this with a constant supplied in *value*. | ||
| This function creates a tensor with the specified `shape` and | ||
| `dtype`, and initializes it with the constant specifed by `value`. |
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.
Uh oh!
There was an error while loading. Please reload this page.