From f9eddadb3ea29f48d3b93c60e6062f16be0f49a2 Mon Sep 17 00:00:00 2001 From: Luo Tao Date: Mon, 20 Feb 2017 15:02:02 +0800 Subject: [PATCH] follow comments, add seq_concat_layer in docs --- doc/api/trainer_config_helpers/layers.rst | 6 ++++++ python/paddle/trainer_config_helpers/layers.py | 10 +++++++--- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/doc/api/trainer_config_helpers/layers.rst b/doc/api/trainer_config_helpers/layers.rst index 8b0e553eacc..3685868ffcf 100644 --- a/doc/api/trainer_config_helpers/layers.rst +++ b/doc/api/trainer_config_helpers/layers.rst @@ -279,6 +279,12 @@ concat_layer :members: concat_layer :noindex: +seq_concat_layer +---------------- +.. automodule:: paddle.trainer_config_helpers.layers + :members: seq_concat_layer + :noindex: + Reshaping Layers ================ diff --git a/python/paddle/trainer_config_helpers/layers.py b/python/paddle/trainer_config_helpers/layers.py index ce9213a5c01..0ff29772356 100755 --- a/python/paddle/trainer_config_helpers/layers.py +++ b/python/paddle/trainer_config_helpers/layers.py @@ -2574,14 +2574,18 @@ def concat_layer(input, act=None, name=None, layer_attr=None, bias_attr=None): @wrap_name_default("seqconcat") @wrap_act_default(act=IdentityActivation()) +@wrap_bias_attr_default(has_bias=False) @layer_support() def seq_concat_layer(a, b, act=None, name=None, layer_attr=None, bias_attr=None): """ Concat sequence a with sequence b. - Inputs: a = [a1, a2, ..., an] - b = [b1, b2, ..., bn] - Note that the length of a and b should be the same. + + Inputs: + - a = [a1, a2, ..., an] + - b = [b1, b2, ..., bn] + - Note that the length of a and b should be the same. + Output: [a1, b1, a2, b2, ..., an, bn] The example usage is: -- GitLab