From 966a95e329ee4c5907c643cb72d341e51c10cf3a Mon Sep 17 00:00:00 2001 From: Luo Tao Date: Tue, 16 May 2017 16:40:41 +0800 Subject: [PATCH] add assert when is_seq=True, there must be bootLayer --- python/paddle/trainer_config_helpers/layers.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/python/paddle/trainer_config_helpers/layers.py b/python/paddle/trainer_config_helpers/layers.py index 3b6f0270de1..dcf1c05bd6a 100755 --- a/python/paddle/trainer_config_helpers/layers.py +++ b/python/paddle/trainer_config_helpers/layers.py @@ -2916,6 +2916,8 @@ def memory(name, boot_bias = ParamAttr.to_bias(boot_bias) assert boot_layer is None or isinstance(boot_layer, LayerOutput) + if is_seq == True: + assert isinstance(boot_layer, LayerOutput) if name is not None: memory_name = None -- GitLab