We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3f91e0f commit 53781fcCopy full SHA for 53781fc
python/paddle/fluid/layers/nn.py
@@ -8099,12 +8099,12 @@ def bilinear_tensor_product(x,
8099
position_tensor = fluid.layers.add_position_encoding(input=tensor)
8100
"""
8101
helper = LayerHelper('bilinear_tensor_product', **locals())
8102
- dtype = helper.input_dtype()
+ dtype = helper.input_dtype('x')
8103
8104
param_shape = [size, x.shape[1], y.shape[1]]
8105
8106
w = helper.create_parameter(
8107
- attr=param_attr, shape=param_shape, dtype=dtype, is_bias=False)
+ attr=helper.param_attr, shape=param_shape, dtype=dtype, is_bias=False)
8108
8109
if name is None:
8110
out = helper.create_variable_for_type_inference(dtype=dtype)
0 commit comments