diff --git a/pgl/layers/conv.py b/pgl/layers/conv.py index a71bd4f2ca853eb5e34a19fe7d2b5ff5e5e71afa..7ff2a502e27dac28cca7b20d484ecb4c7ad5e803 100644 --- a/pgl/layers/conv.py +++ b/pgl/layers/conv.py @@ -231,15 +231,7 @@ def gin(gw, output = fluid.layers.fc(output, size=hidden_size, - bias_attr=False, + bias_attr=True, param_attr=fluid.ParamAttr(name="%s_w" % name)) - bias = fluid.layers.create_parameter( - shape=[hidden_size], - dtype='float32', - is_bias=True, - attr=fluid.ParamAttr(name="%s_b" % name)) - - output = fluid.layers.elementwise_add(output, bias, act=activation) - return output