Skip to content

Commit 32df1fb

Browse files
modify API nn.Bilinear's doc (#31889) (#31934)
修改Bilinear的文档,让描述更易懂
1 parent c7a6a1f commit 32df1fb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

python/paddle/nn/layer/common.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -571,15 +571,15 @@ class Bilinear(layers.Layer):
571571
572572
.. math::
573573
574-
out_{i} = x1 * W_{i} * {x2^\mathrm{T}}, i=0,1,...,size-1
574+
out_{i} = x1 * W_{i} * {x2^\mathrm{T}}, i=0,1,...,outfeatures-1
575575
576576
out = out + b
577577
578578
In this formula:
579579
- :math:`x1`: the first input contains in1_features elements, shape is [batch_size, in1_features].
580580
- :math:`x2`: the second input contains in2_features elements, shape is [batch_size, in2_features].
581581
- :math:`W_{i}`: the i-th learned weight, shape is [in1_features, in2_features], and learned weight's shape is [out_features, in1_features, in2_features].
582-
- :math:`out_{i}`: the i-th element of out, shape is [batch_size, out_features].
582+
- :math:`out_{i}`: the i-th element of out, shape is [batch_size], and out's shape is [batch_size, out_features].
583583
- :math:`b`: the learned bias, shape is [1, out_features].
584584
- :math:`x2^\mathrm{T}`: the transpose of :math:`x2`.
585585

0 commit comments

Comments
 (0)