diff --git a/paddle/gserver/tests/test_KmaxSeqScore.cpp b/paddle/gserver/tests/test_KmaxSeqScore.cpp index 30aadae7126778b329b037c65dd644e836c09328..308abe6816428bc0f98ec32e892622fa4a23b1ae 100644 --- a/paddle/gserver/tests/test_KmaxSeqScore.cpp +++ b/paddle/gserver/tests/test_KmaxSeqScore.cpp @@ -98,7 +98,7 @@ TEST(Layer, kmaxSeqScoreLayer) { std::vector mode = {false}; #ifndef PADDLE_ONLY_CPU - model.push_back(true); + mode.push_back(true); #endif for (auto hasSubseq : {false, true}) {