提交 62d1f9a7 编写于 作者: D dzhwinter

"done"

上级 80bd1ca0
......@@ -81,7 +81,7 @@ void GetOutputOffset(const framework::Vector<size_t>& x_lod,
size_t offset = 0;
int lod_size = static_cast<int>(x_lod.size());
for (int i = 0; i < static_cast<int>(x_lod.size()); ++i) {
out_offset[i] = offset;
(*out_offset)[i] = offset;
if (i < lod_size - 1) {
offset += (ref_lod[i + 1] - ref_lod[i]) * (x_lod[i + 1] - x_lod[i]);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册