Skip to content

Commit 29fe2a0

Browse files
committed
add comments in test_Expand.cpp
1 parent 0f67a82 commit 29fe2a0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

paddle/gserver/tests/test_Expand.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,8 @@ TEST(Layer, ExpandLayerFwd) {
9191
doOneExpandTest("non-seq", false, useGpu, input1, input2, result);
9292

9393
// CPU case 2. non-seq expand to sub-seq
94+
// NOTE: input1.batch_size == input2.sequencelength in this case.
95+
// i.e, input1 expands by input2.sequence
9496
// input1 = 1,2,3
9597
// input2 = [[4,5]],[[6]],[[7],[8,9]]
9698
// result = [[1,1]],[[2]],[[3],[3,3]]

0 commit comments

Comments
 (0)