Skip to content

Commit e557611

Browse files
authored
Fix equations in sequence_pool op (#6355)
1 parent 45b015b commit e557611

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

paddle/operators/sequence_pool_op.cc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,12 +58,12 @@ Sequence Pool Operator.
5858
5959
The SequencePoolOp pools features of all time-steps of each instance.
6060
It supports six pooling types:
61-
1. AVERAGE: Out[i] = $$avg(X_i)$$
62-
2. SUM: Out[i] = $$\sum_jX_{ij}$$
63-
3. SQRT: Out[i] = $$\frac{\sum_jX_{ij}}{\sqrt{len(X_i)}}$$
61+
1. AVERAGE: $$Out[i] = \frac{\sum_i X_i}{N}$$
62+
2. SUM: $$Out[i] = \sum_jX_{ij}$$
63+
3. SQRT: $$Out[i] = \frac{\sum_jX_{ij}}{\sqrt{len(X_i)}}$$
6464
4. LAST: Out[i] = last instance in i-th sequence X[i]
6565
5. FIRST: Out[i] = first instance in i-th sequence X[i]
66-
6. MAX: Out[i] = $$max(X_i)$$
66+
6. MAX: $$Out[i] = max(X_i)$$
6767
6868
The following example explains how this works:
6969
For a mini-batch of 3 variable-length sentences,

0 commit comments

Comments
 (0)