Skip to content

Commit 57a18e3

Browse files
committed
test=develop
1 parent f7b55de commit 57a18e3

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

paddle/fluid/operators/hierarchical_sigmoid_op.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,7 @@ std::vector<int64_t> cal_rows(const framework::LoDTensor* path) {
4343
}
4444
}
4545
}
46-
for (std::set<int64_t>::iterator it = tmp.begin(); it != tmp.end(); ++it) {
47-
rows.push_back(*it);
48-
}
46+
rows.assign(tmp.begin(), tmp.end());
4947
return rows;
5048
}
5149

0 commit comments

Comments
 (0)