From 53781fc0001e4ec812b053eb9873e6433210edac Mon Sep 17 00:00:00 2001 From: Qiao Longfei Date: Fri, 9 Nov 2018 09:40:09 +0800 Subject: [PATCH] fix some bug --- python/paddle/fluid/layers/nn.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/paddle/fluid/layers/nn.py b/python/paddle/fluid/layers/nn.py index 7b0a73e52b..e7e53bb53d 100644 --- a/python/paddle/fluid/layers/nn.py +++ b/python/paddle/fluid/layers/nn.py @@ -8099,12 +8099,12 @@ def bilinear_tensor_product(x, position_tensor = fluid.layers.add_position_encoding(input=tensor) """ helper = LayerHelper('bilinear_tensor_product', **locals()) - dtype = helper.input_dtype() + dtype = helper.input_dtype('x') param_shape = [size, x.shape[1], y.shape[1]] w = helper.create_parameter( - attr=param_attr, shape=param_shape, dtype=dtype, is_bias=False) + attr=helper.param_attr, shape=param_shape, dtype=dtype, is_bias=False) if name is None: out = helper.create_variable_for_type_inference(dtype=dtype) -- GitLab