Skip to content

Commit 53781fc

Browse files
committed
fix some bug
1 parent 3f91e0f commit 53781fc

File tree

1 file changed

+2
-2
lines changed
  • python/paddle/fluid/layers

1 file changed

+2
-2
lines changed

python/paddle/fluid/layers/nn.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8099,12 +8099,12 @@ def bilinear_tensor_product(x,
80998099
position_tensor = fluid.layers.add_position_encoding(input=tensor)
81008100
"""
81018101
helper = LayerHelper('bilinear_tensor_product', **locals())
8102-
dtype = helper.input_dtype()
8102+
dtype = helper.input_dtype('x')
81038103

81048104
param_shape = [size, x.shape[1], y.shape[1]]
81058105

81068106
w = helper.create_parameter(
8107-
attr=param_attr, shape=param_shape, dtype=dtype, is_bias=False)
8107+
attr=helper.param_attr, shape=param_shape, dtype=dtype, is_bias=False)
81088108

81098109
if name is None:
81108110
out = helper.create_variable_for_type_inference(dtype=dtype)

0 commit comments

Comments
 (0)