提交 c2f6aa9b 编写于 作者: L Luo Tao 提交者: zchen0211

add comments in test_Expand.cpp

上级 873ee9ab
...@@ -91,6 +91,8 @@ TEST(Layer, ExpandLayerFwd) { ...@@ -91,6 +91,8 @@ TEST(Layer, ExpandLayerFwd) {
doOneExpandTest("non-seq", false, useGpu, input1, input2, result); doOneExpandTest("non-seq", false, useGpu, input1, input2, result);
// CPU case 2. non-seq expand to sub-seq // CPU case 2. non-seq expand to sub-seq
// NOTE: input1.batch_size == input2.sequencelength in this case.
// i.e, input1 expands by input2.sequence
// input1 = 1,2,3 // input1 = 1,2,3
// input2 = [[4,5]],[[6]],[[7],[8,9]] // input2 = [[4,5]],[[6]],[[7],[8,9]]
// result = [[1,1]],[[2]],[[3],[3,3]] // result = [[1,1]],[[2]],[[3],[3,3]]
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册