From 759a9d3ab5a2a25d32f7e9c7c1e5d9745ab773b2 Mon Sep 17 00:00:00 2001 From: caoying03 Date: Mon, 14 Aug 2017 12:38:06 +0800 Subject: [PATCH] follow comments. --- paddle/gserver/tests/LayerGradUtil.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/paddle/gserver/tests/LayerGradUtil.h b/paddle/gserver/tests/LayerGradUtil.h index a35edd2b5e2..88e831f78bd 100644 --- a/paddle/gserver/tests/LayerGradUtil.h +++ b/paddle/gserver/tests/LayerGradUtil.h @@ -98,9 +98,9 @@ struct InputDef { InputDef(InputType type, string nameIn, - std::vector ids, - std::vector selfDefinedSeqStartPos = {}, - std::vector selfDefinedSubSeqStartPos = {}) + const std::vector& ids, + const std::vector& selfDefinedSeqStartPos = {}, + const std::vector& selfDefinedSubSeqStartPos = {}) : labelSeqStartPositions(selfDefinedSeqStartPos), labelSubSeqStartPositions(selfDefinedSubSeqStartPos), ids(ids) { -- GitLab