提交 386a0289 编写于 作者: P Peng Li

Ensure name is not set in bias_attr in gru_step_naive_layer

上级 5c5250e3
......@@ -3679,6 +3679,11 @@ def gru_step_naive_layer(input,
if size is None:
size = input.size / 3
if bias_attr and bias_attr.attr.get("parameter_name", None) is not None:
raise ValueError("You should not specify the name of bias parameters. "
"Otherwise, the three bias will share the same "
"parameter matrix.")
def __gate__(gate_name, offset):
with mixed_layer(
name=name + "_" + gate_name,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册