We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 43938db commit 5156f14Copy full SHA for 5156f14
mooncake-integration/store/store_py.cpp
@@ -227,10 +227,9 @@ class MooncakeStorePyWrapper {
227
py::gil_scoped_acquire acquire_gil;
228
auto torch = torch_module();
229
230
- int i = 0;
231
- for (const auto &buffer_handle : buffer_handles) {
+ for (const auto &key : keys) {
232
uint64_t total_length = 0;
233
- auto get_result = store_->get_allocated_internal(keys[i++], total_length);
+ auto get_result = store_->get_allocated_internal(key, total_length);
234
if (!get_result) {
235
results_list.append(py::none());
236
continue;
0 commit comments