提交 4e3fac41 编写于 作者: K Kexin Zhao 提交者: Abhinav Arora

fix sign unsigned comparison (#10424)

上级 b6528216
......@@ -62,7 +62,7 @@ class LookupSparseTableOp : public framework::OperatorBase {
auto w_t = w_var->GetMutable<framework::SelectedRows>();
std::vector<int64_t> keys;
keys.resize(ids_t.numel());
for (size_t i = 0; i < ids_t.numel(); ++i) {
for (int64_t i = 0; i < ids_t.numel(); ++i) {
keys[i] = ids_t.data<int64_t>()[i];
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册