提交 966a95e3 编写于 作者: L Luo Tao

add assert when is_seq=True, there must be bootLayer

上级 c2ebd1c3
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册