From 1bcf7e23bdf23ad8a96cf75a42a37f1e45fea89b Mon Sep 17 00:00:00 2001 From: yangyaming Date: Tue, 2 Jan 2018 19:29:05 +0800 Subject: [PATCH] Minor refinement. --- python/paddle/v2/fluid/layers/control_flow.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/python/paddle/v2/fluid/layers/control_flow.py b/python/paddle/v2/fluid/layers/control_flow.py index 0f8295d177..114d46b5f8 100644 --- a/python/paddle/v2/fluid/layers/control_flow.py +++ b/python/paddle/v2/fluid/layers/control_flow.py @@ -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 () 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() 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 -- GitLab