提交 7eb8941c 编写于 作者: W Webbley

fix bug of elementwise_mul error

上级 780a2a4f
...@@ -230,7 +230,7 @@ def gin(gw, ...@@ -230,7 +230,7 @@ def gin(gw,
epsilon.stop_gradient = True epsilon.stop_gradient = True
msg = gw.send(send_src_copy, nfeat_list=[("h", feature)]) msg = gw.send(send_src_copy, nfeat_list=[("h", feature)])
output = gw.recv(msg, "sum") + (1.0 + epsilon) * feature output = gw.recv(msg, "sum") + feature * (epsilon + 1.0)
output = fluid.layers.fc(output, output = fluid.layers.fc(output,
size=hidden_size, size=hidden_size,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册