提交 1bcf7e23 编写于 作者: Y yangyaming

Minor refinement.

上级 a5200b89
...@@ -415,16 +415,16 @@ def lod_rank_table(x, level=0): ...@@ -415,16 +415,16 @@ def lod_rank_table(x, level=0):
def max_sequence_len(rank_table): def max_sequence_len(rank_table):
"""Max Sequence Len Operator. Given a LoDRankTable object, this layer """Max Sequence Len Operator. Given a LoDRankTable object, this layer
returns the max length of batch of sequences. In fact, a LoDRankTable object returns the max length of a batch of sequences. In fact, a LoDRankTable
contains a list of tuples (<sequence index, sequence length>) and the list object contains a list of tuples(<sequence index, sequence length>) and
is already sorted by sequence length in descending order, so the operator the list is already sorted by sequence length in descending order, so the
just returns the sequence length of the first tuple element. operator just returns the sequence length of the first tuple element.
Args: Args:
rank_table (Variable): Input variable which is a LoDRankTable object. rank_table (Variable): Input variable which is a LoDRankTable object.
Returns: Returns:
Variable: the max length of sequence. Variable: The max length of sequence.
Examples: Examples:
.. code-block:: python .. code-block:: python
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册