Skip to content

Commit

Permalink
fix gpu build error
Browse files Browse the repository at this point in the history
  • Loading branch information
QiJune committed Nov 7, 2017
1 parent aaba078 commit febcac3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion paddle/framework/lod_tensor.cc
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ void AppendLoD(LoD* lod, const LoD& lod_length) {
lod->empty() || lod->size() == lod_length.size(),
"The lod_length should has the same size with the appended lod.");
if (lod->empty()) {
*lod = LoD(lod_length.size(), {0});
*lod = LoD(lod_length.size(), std::vector<size_t>({0}));
}
for (size_t i = 0; i < lod->size(); ++i) {
auto& level = (*lod)[i];
Expand Down

0 comments on commit febcac3

Please sign in to comment.