提交 928d4210 编写于 作者: Z zhangwenhui03

fix bias bug

上级 6aefc6d3
...@@ -67,15 +67,15 @@ class GrnnEncoder(object): ...@@ -67,15 +67,15 @@ class GrnnEncoder(object):
fc0 = nn.fc( fc0 = nn.fc(
input=emb, input=emb,
size=self.hidden_size * 3, size=self.hidden_size * 3,
param_attr=str(str(self.param_name) + "_fc.w"), param_attr=self.param_name + "_fc.w",
bias_attr=str(str(self.param_name) + "_fc.b") bias_attr=False)
)
gru_h = nn.dynamic_gru( gru_h = nn.dynamic_gru(
input=fc0, input=fc0,
size=self.hidden_size, size=self.hidden_size,
is_reverse=False, is_reverse=False,
param_attr=str(str(self.param_name) + ".param"), param_attr=self.param_name + ".param",
bias_attr=str(str(self.param_name) + ".bias")) bias_attr=self.param_name + ".bias")
return nn.sequence_pool(input=gru_h, pool_type='max') return nn.sequence_pool(input=gru_h, pool_type='max')
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册