Skip to content

Commit cc0e365

Browse files
committed
Remove unused argument passing to bincount callback
1 parent 3f0e79c commit cc0e365

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

dpnp/backend/extensions/statistics/bincount.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,6 @@ struct BincountF
9292
const uint64_t max,
9393
const void *vweights,
9494
void *vout,
95-
const size_t,
9695
const size_t size,
9796
const std::vector<sycl::event> &depends)
9897
{
@@ -186,9 +185,9 @@ std::tuple<sycl::event, sycl::event> Bincount::call(
186185
void *weights_ptr =
187186
weights.has_value() ? weights.value().get_data() : nullptr;
188187

189-
auto ev = bincount_func(exec_q, sample.get_data(), min, max, weights_ptr,
190-
histogram.get_data(), histogram.get_shape(0),
191-
sample.get_shape(0), depends);
188+
auto ev =
189+
bincount_func(exec_q, sample.get_data(), min, max, weights_ptr,
190+
histogram.get_data(), histogram.get_size(), depends);
192191

193192
sycl::event args_ev;
194193
if (weights.has_value()) {

dpnp/backend/extensions/statistics/bincount.hpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ struct Bincount
4444
const void *,
4545
void *,
4646
const size_t,
47-
const size_t,
4847
const std::vector<sycl::event> &);
4948

5049
common::DispatchTable2<FnT> dispatch_table;

0 commit comments

Comments
 (0)