提交 db39935b 编写于 作者: C Cao Ying 提交者: GitHub

Merge pull request #3647 from yu239/fill_gen_output

fix ids reverse order in fillGenOutputs.
...@@ -1344,7 +1344,7 @@ void RecurrentGradientMachine::fillGenOutputs() { ...@@ -1344,7 +1344,7 @@ void RecurrentGradientMachine::fillGenOutputs() {
CHECK(!finalPaths_[i].empty()); CHECK(!finalPaths_[i].empty());
Path& path = finalPaths_[i][0]; Path& path = finalPaths_[i][0];
generator_.ids.insert( generator_.ids.insert(
generator_.ids.begin(), path.ids.begin(), path.ids.end()); generator_.ids.end(), path.ids.begin(), path.ids.end());
starts[i + 1] = starts[i] + path.ids.size(); starts[i + 1] = starts[i] + path.ids.size();
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册