add assert when is_seq=True, there must be bootLayer

refactor_docs
Luo Tao 8 years ago
parent c2ebd1c366
commit 966a95e329

@ -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

Loading…
Cancel
Save