From 57a18e32a18232b65920a8ecb0ea014453bbdf7a Mon Sep 17 00:00:00 2001 From: JiabinYang Date: Thu, 22 Nov 2018 04:26:13 +0000 Subject: [PATCH] test=develop --- paddle/fluid/operators/hierarchical_sigmoid_op.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/paddle/fluid/operators/hierarchical_sigmoid_op.h b/paddle/fluid/operators/hierarchical_sigmoid_op.h index 35a1de3e191..418fe86f69f 100644 --- a/paddle/fluid/operators/hierarchical_sigmoid_op.h +++ b/paddle/fluid/operators/hierarchical_sigmoid_op.h @@ -43,9 +43,7 @@ std::vector cal_rows(const framework::LoDTensor* path) { } } } - for (std::set::iterator it = tmp.begin(); it != tmp.end(); ++it) { - rows.push_back(*it); - } + rows.assign(tmp.begin(), tmp.end()); return rows; } -- GitLab