Skip to content

Commit 4550862

Browse files
authored
Merge pull request #15734 from qingqing01/release/1.3.4
cherry-pick/Fix row_conv doc
2 parents 4f82d33 + 4450f34 commit 4550862

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

paddle/fluid/operators/row_conv_op.cc

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -109,23 +109,23 @@ from future subsequences in a computationally efficient manner to improve
109109
unidirectional recurrent neural networks. The row convolution operator is
110110
different from the 1D sequence convolution, and is computed as follows:
111111
112-
Given an input sequence $in$ of length $t$ and input dimension $d$,
113-
and a filter ($W$) of size $context \times d$,
112+
Given an input sequence $X$ of length $t$ and input dimension $D$,
113+
and a filter ($W$) of size $context \times D$,
114114
the output sequence is convolved as:
115115
116116
$$
117-
out_{i, :} = \\sum_{j=i}^{i + context} in_{j,:} \\cdot W_{i-j, :}
117+
out_{i} = \\sum_{j=i}^{i + context - 1} X_{j} \\cdot W_{j-i}
118118
$$
119119
120120
In the above equation:
121121
122122
* $Out_{i}$: The i-th row of output variable with shape [1, D].
123123
124-
* $\\tau$: Future context size.
124+
* $context$: Future context size.
125125
126126
* $X_{j}$: The j-th row of input variable with shape [1, D].
127127
128-
* $W_{i-j}$: The (i-j)-th row of parameters with shape [1, D].
128+
* $W_{j-i}$: The (j-i)-th row of parameters with shape [1, D].
129129
130130
More details about row_conv please refer to
131131
the design document

0 commit comments

Comments
 (0)