提交 d1ac5675 编写于 作者: X Xin Pan

fix

test=develop
上级 bf180577
......@@ -405,7 +405,8 @@ class LayerHelper(object):
"""
size = list(input_var.shape[dim_start:dim_end])
bias_attr = self.bias_attr
assert bias_attr is not None
if not bias_attr:
return input_var
b = self.create_parameter(
attr=bias_attr, shape=size, dtype=input_var.dtype, is_bias=True)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册