提交 f818b111 编写于 作者: Q qijun

set correct attr for bias op in fc layer

上级 43702a89
......@@ -139,7 +139,9 @@ class LayerHelper(object):
type='elementwise_add',
inputs={'X': [input_var],
'Y': [b]},
outputs={'Out': [tmp]})
outputs={'Out': [tmp]},
# for rowwise add, we should set axis 1
attrs={'axis': 1})
return tmp
def append_activation(self, input_var):
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册