We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b652821 commit 4e3fac4Copy full SHA for 4e3fac4
paddle/fluid/operators/lookup_sparse_table_op.cc
@@ -62,7 +62,7 @@ class LookupSparseTableOp : public framework::OperatorBase {
62
auto w_t = w_var->GetMutable<framework::SelectedRows>();
63
std::vector<int64_t> keys;
64
keys.resize(ids_t.numel());
65
- for (size_t i = 0; i < ids_t.numel(); ++i) {
+ for (int64_t i = 0; i < ids_t.numel(); ++i) {
66
keys[i] = ids_t.data<int64_t>()[i];
67
}
68
0 commit comments