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

Minor refinement.

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