Update comments for two operators.#7457
Conversation
a2be67c to
c381560
Compare
c381560 to
473fd63
Compare
There was a problem hiding this comment.
not a sequence may not be proper. Something like not sequence data might be better.
There was a problem hiding this comment.
Should it be LOD_TENSOR_ARRAY or LoDTensor here
There was a problem hiding this comment.
Should converted to a tensor be converted to a LoDTensor here
There was a problem hiding this comment.
The ouput should be The output.
| 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 |
|
|
||
| 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 |
abhinavarora
left a comment
There was a problem hiding this comment.
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.
originally -> original
| 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.
The sentence should be -> This is also identical to a batch of sequences where each sequence has a fixed length 1.
| 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 |
|
|
||
| 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. |
|
|
||
| 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 |
| 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`. |
lcy-seso
left a comment
There was a problem hiding this comment.
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 |
| 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 |
| 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. |
| 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 |
| 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 |
|
|
||
| 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. |
| 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`. |
Uh oh!
There was an error while loading. Please reload this page.