Skip to content

Commit 4e3fac4

Browse files
kexinzhaoabhinavarora
authored andcommitted
fix sign unsigned comparison (#10424)
1 parent b652821 commit 4e3fac4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

paddle/fluid/operators/lookup_sparse_table_op.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ class LookupSparseTableOp : public framework::OperatorBase {
6262
auto w_t = w_var->GetMutable<framework::SelectedRows>();
6363
std::vector<int64_t> keys;
6464
keys.resize(ids_t.numel());
65-
for (size_t i = 0; i < ids_t.numel(); ++i) {
65+
for (int64_t i = 0; i < ids_t.numel(); ++i) {
6666
keys[i] = ids_t.data<int64_t>()[i];
6767
}
6868

0 commit comments

Comments
 (0)