From 7d84de4712949d92506be3a730a286be46259c2b Mon Sep 17 00:00:00 2001 From: Yibing Liu Date: Mon, 15 Oct 2018 12:19:11 +0000 Subject: [PATCH] Fix some typos --- python/paddle/fluid/layers/nn.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/python/paddle/fluid/layers/nn.py b/python/paddle/fluid/layers/nn.py index c7f2f02c24..158c2617ef 100644 --- a/python/paddle/fluid/layers/nn.py +++ b/python/paddle/fluid/layers/nn.py @@ -1925,19 +1925,19 @@ def sequence_slice(input, offset, length, name=None): out.data = [[a1, a2], [b1, b2], [e1, e2]], out.lod = [[0, 2, 3]], out.dims = (3, 2) - NOTE: The first dimension size of input, the size of offset and Length, + NOTE: The first dimension size of input, the size of offset and Length should be equal. The offset start from 0. Args: input(Variable): The input Variable which consists of the complete - sentences. + sequences. offset(Variable): The offset to slice each sequence. length(Variable): The length of each subsequence. name(str|None): A name for this layer(optional). If set None, the layer will be named automatically. Returns: - Variable: The subsequences. + Variable: The output subsequences. Examples: -- GitLab