diff --git a/dpctl/tensor/libtensor/source/boolean_advanced_indexing.cpp b/dpctl/tensor/libtensor/source/boolean_advanced_indexing.cpp index e28a4ad128..7b17a41b0c 100644 --- a/dpctl/tensor/libtensor/source/boolean_advanced_indexing.cpp +++ b/dpctl/tensor/libtensor/source/boolean_advanced_indexing.cpp @@ -370,8 +370,6 @@ py_extract(const dpctl::tensor::usm_ndarray &src, host_task_events.push_back(cleanup_tmp_allocations_ev); } - host_task_events.push_back(extract_ev); - sycl::event py_obj_management_host_task_ev = dpctl::utils::keep_args_alive( exec_q, {src, cumsum, dst}, host_task_events); @@ -691,8 +689,6 @@ py_place(const dpctl::tensor::usm_ndarray &dst, host_task_events.push_back(cleanup_tmp_allocations_ev); } - host_task_events.push_back(place_ev); - sycl::event py_obj_management_host_task_ev = dpctl::utils::keep_args_alive( exec_q, {dst, cumsum, rhs}, host_task_events); diff --git a/dpctl/tensor/libtensor/source/linalg_functions/dot.cpp b/dpctl/tensor/libtensor/source/linalg_functions/dot.cpp index 9459b8ad43..e0fc581c10 100644 --- a/dpctl/tensor/libtensor/source/linalg_functions/dot.cpp +++ b/dpctl/tensor/libtensor/source/linalg_functions/dot.cpp @@ -593,7 +593,6 @@ py_dot(const dpctl::tensor::usm_ndarray &x1, }); }); host_task_events.push_back(cleanup_tmp_allocations_ev); - host_task_events.push_back(dot_ev); } else { // if (call_batched) using shT = std::vector; @@ -802,7 +801,6 @@ py_dot(const dpctl::tensor::usm_ndarray &x1, }); }); host_task_events.push_back(cleanup_tmp_allocations_ev); - host_task_events.push_back(dot_ev); } } return std::make_pair( diff --git a/dpctl/tensor/libtensor/source/repeat.cpp b/dpctl/tensor/libtensor/source/repeat.cpp index add05d597f..2ea41dd49b 100644 --- a/dpctl/tensor/libtensor/source/repeat.cpp +++ b/dpctl/tensor/libtensor/source/repeat.cpp @@ -356,8 +356,6 @@ py_repeat_by_sequence(const dpctl::tensor::usm_ndarray &src, host_task_events.push_back(cleanup_tmp_allocations_ev); } - host_task_events.push_back(repeat_ev); - sycl::event py_obj_management_host_task_ev = dpctl::utils::keep_args_alive( exec_q, {src, reps, cumsum, dst}, host_task_events); @@ -504,7 +502,6 @@ py_repeat_by_sequence(const dpctl::tensor::usm_ndarray &src, }); }); host_task_events.push_back(cleanup_tmp_allocations_ev); - host_task_events.push_back(repeat_ev); sycl::event py_obj_management_host_task_ev = dpctl::utils::keep_args_alive( exec_q, {src, reps, cumsum, dst}, host_task_events); @@ -734,8 +731,6 @@ py_repeat_by_scalar(const dpctl::tensor::usm_ndarray &src, host_task_events.push_back(cleanup_tmp_allocations_ev); } - host_task_events.push_back(repeat_ev); - sycl::event py_obj_management_host_task_ev = dpctl::utils::keep_args_alive(exec_q, {src, dst}, host_task_events); @@ -846,7 +841,6 @@ py_repeat_by_scalar(const dpctl::tensor::usm_ndarray &src, }); host_task_events.push_back(cleanup_tmp_allocations_ev); - host_task_events.push_back(repeat_ev); sycl::event py_obj_management_host_task_ev = dpctl::utils::keep_args_alive(exec_q, {src, dst}, host_task_events);