Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 05b88bb

Browse files
committed
address comment
1 parent 8d9df3f commit 05b88bb

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

cpp/oneapi/dal/algo/knn/backend/gpu/infer_kernel_impl_dpc_distr.hpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -227,9 +227,8 @@ class knn_callback_distr {
227227

228228
// add global offset value to input indices
229229
ONEDAL_ASSERT(global_index_offset_ != -1);
230-
bk::event_vector ndeps = deps;
231-
ndeps.push_back(copy_current_resp_event);
232-
auto treat_event = pr::treat_indices(queue_, inp_indices, global_index_offset_, ndeps);
230+
deps.push_back(copy_current_resp_event);
231+
auto treat_event = pr::treat_indices(queue_, inp_indices, global_index_offset_, deps);
233232

234233
auto actual_min_dist_copy_dest =
235234
part_distances_.get_col_slice(0, k_neighbors_).get_row_slice(first, last);

0 commit comments

Comments
 (0)