@@ -576,9 +576,8 @@ dot_product_contig_impl(sycl::queue &exec_q,
576576 dpctl::tensor::offset_utils::TwoOffsets_CombinedIndexer<
577577 NoOpIndexerT, NoOpIndexerT>;
578578
579- const InputBatchIndexerT inp_batch_indexer{
580- 0 , static_cast <ssize_t >(batches),
581- static_cast <ssize_t >(reduction_nelems)};
579+ const InputBatchIndexerT inp_batch_indexer{/* size */ batches,
580+ /* step */ reduction_nelems};
582581 const InputOutputBatchIndexerT inp_out_batch_indexer{
583582 inp_batch_indexer, inp_batch_indexer, NoOpIndexerT{}};
584583 constexpr ReductionIndexerT reduction_indexer{NoOpIndexerT{},
@@ -612,9 +611,8 @@ dot_product_contig_impl(sycl::queue &exec_q,
612611 dpctl::tensor::offset_utils::TwoOffsets_CombinedIndexer<
613612 NoOpIndexerT, NoOpIndexerT>;
614613
615- const InputBatchIndexerT inp_batch_indexer{
616- 0 , static_cast <ssize_t >(batches),
617- static_cast <ssize_t >(reduction_nelems)};
614+ const InputBatchIndexerT inp_batch_indexer{/* size */ batches,
615+ /* step */ reduction_nelems};
618616 const InputOutputBatchIndexerT inp_out_batch_indexer{
619617 inp_batch_indexer, inp_batch_indexer, NoOpIndexerT{}};
620618 constexpr ReductionIndexerT reduction_indexer{NoOpIndexerT{},
@@ -1089,9 +1087,8 @@ sycl::event dot_product_tree_impl(sycl::queue &exec_q,
10891087 InputIndexerT, ResIndexerT>;
10901088 using ReductionIndexerT = dpctl::tensor::offset_utils::NoOpIndexer;
10911089
1092- const InputIndexerT inp_indexer{
1093- 0 , static_cast <ssize_t >(batches),
1094- static_cast <ssize_t >(reduction_groups_)};
1090+ const InputIndexerT inp_indexer{/* size */ batches,
1091+ /* step */ reduction_groups_};
10951092 constexpr ResIndexerT res_iter_indexer{};
10961093
10971094 const InputOutputIterIndexerT in_out_iter_indexer{inp_indexer,
@@ -1120,9 +1117,8 @@ sycl::event dot_product_tree_impl(sycl::queue &exec_q,
11201117 InputIndexerT, ResIndexerT>;
11211118 using ReductionIndexerT = dpctl::tensor::offset_utils::NoOpIndexer;
11221119
1123- const InputIndexerT inp_indexer{
1124- 0 , static_cast <ssize_t >(batches),
1125- static_cast <ssize_t >(remaining_reduction_nelems)};
1120+ const InputIndexerT inp_indexer{/* size */ batches,
1121+ /* step */ remaining_reduction_nelems};
11261122 const ResIndexerT res_iter_indexer{
11271123 batch_nd, batch_res_offset,
11281124 /* shape */ batch_shape_and_strides,
@@ -1200,9 +1196,8 @@ dot_product_contig_tree_impl(sycl::queue &exec_q,
12001196 dpctl::tensor::offset_utils::TwoOffsets_CombinedIndexer<
12011197 NoOpIndexerT, NoOpIndexerT>;
12021198
1203- const InputBatchIndexerT inp_batch_indexer{
1204- 0 , static_cast <ssize_t >(batches),
1205- static_cast <ssize_t >(reduction_nelems)};
1199+ const InputBatchIndexerT inp_batch_indexer{/* size */ batches,
1200+ /* step */ reduction_nelems};
12061201 const InputOutputBatchIndexerT inp_out_batch_indexer{
12071202 inp_batch_indexer, inp_batch_indexer, NoOpIndexerT{}};
12081203 constexpr ReductionIndexerT reduction_indexer{NoOpIndexerT{},
@@ -1238,9 +1233,8 @@ dot_product_contig_tree_impl(sycl::queue &exec_q,
12381233 dpctl::tensor::offset_utils::TwoOffsets_CombinedIndexer<
12391234 NoOpIndexerT, NoOpIndexerT>;
12401235
1241- const InputBatchIndexerT inp_batch_indexer{
1242- 0 , static_cast <ssize_t >(batches),
1243- static_cast <ssize_t >(reduction_nelems)};
1236+ const InputBatchIndexerT inp_batch_indexer{/* size */ batches,
1237+ /* step */ reduction_nelems};
12441238 const InputOutputBatchIndexerT inp_out_batch_indexer{
12451239 inp_batch_indexer, inp_batch_indexer, NoOpIndexerT{}};
12461240 constexpr ReductionIndexerT reduction_indexer{NoOpIndexerT{},
@@ -1307,8 +1301,8 @@ dot_product_contig_tree_impl(sycl::queue &exec_q,
13071301 NoOpIndexerT, NoOpIndexerT>;
13081302
13091303 const InputBatchIndexerT inp_batch_indexer{
1310- 0 , static_cast < ssize_t >( batches) ,
1311- static_cast < ssize_t >( reduction_nelems) };
1304+ /* size */ batches,
1305+ /* step */ reduction_nelems};
13121306 const InputOutputBatchIndexerT inp_out_batch_indexer{
13131307 inp_batch_indexer, inp_batch_indexer, NoOpIndexerT{}};
13141308 constexpr ReductionIndexerT reduction_indexer{NoOpIndexerT{},
@@ -1343,9 +1337,8 @@ dot_product_contig_tree_impl(sycl::queue &exec_q,
13431337 InputIndexerT, ResIndexerT>;
13441338 using ReductionIndexerT = dpctl::tensor::offset_utils::NoOpIndexer;
13451339
1346- const InputIndexerT inp_indexer{
1347- 0 , static_cast <ssize_t >(batches),
1348- static_cast <ssize_t >(reduction_groups_)};
1340+ const InputIndexerT inp_indexer{/* size */ batches,
1341+ /* step */ reduction_groups_};
13491342 constexpr ResIndexerT res_iter_indexer{};
13501343
13511344 const InputOutputIterIndexerT in_out_iter_indexer{inp_indexer,
@@ -1374,9 +1367,8 @@ dot_product_contig_tree_impl(sycl::queue &exec_q,
13741367 InputIndexerT, ResIndexerT>;
13751368 using ReductionIndexerT = dpctl::tensor::offset_utils::NoOpIndexer;
13761369
1377- const InputIndexerT inp_indexer{
1378- 0 , static_cast <ssize_t >(batches),
1379- static_cast <ssize_t >(remaining_reduction_nelems)};
1370+ const InputIndexerT inp_indexer{/* size */ batches,
1371+ /* step */ remaining_reduction_nelems};
13801372 constexpr ResIndexerT res_iter_indexer{};
13811373
13821374 const InputOutputIterIndexerT in_out_iter_indexer{inp_indexer,
0 commit comments