@@ -576,9 +576,8 @@ dot_product_contig_impl(sycl::queue &exec_q,
576
576
dpctl::tensor::offset_utils::TwoOffsets_CombinedIndexer<
577
577
NoOpIndexerT, NoOpIndexerT>;
578
578
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};
582
581
const InputOutputBatchIndexerT inp_out_batch_indexer{
583
582
inp_batch_indexer, inp_batch_indexer, NoOpIndexerT{}};
584
583
constexpr ReductionIndexerT reduction_indexer{NoOpIndexerT{},
@@ -612,9 +611,8 @@ dot_product_contig_impl(sycl::queue &exec_q,
612
611
dpctl::tensor::offset_utils::TwoOffsets_CombinedIndexer<
613
612
NoOpIndexerT, NoOpIndexerT>;
614
613
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};
618
616
const InputOutputBatchIndexerT inp_out_batch_indexer{
619
617
inp_batch_indexer, inp_batch_indexer, NoOpIndexerT{}};
620
618
constexpr ReductionIndexerT reduction_indexer{NoOpIndexerT{},
@@ -1089,9 +1087,8 @@ sycl::event dot_product_tree_impl(sycl::queue &exec_q,
1089
1087
InputIndexerT, ResIndexerT>;
1090
1088
using ReductionIndexerT = dpctl::tensor::offset_utils::NoOpIndexer;
1091
1089
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_};
1095
1092
constexpr ResIndexerT res_iter_indexer{};
1096
1093
1097
1094
const InputOutputIterIndexerT in_out_iter_indexer{inp_indexer,
@@ -1120,9 +1117,8 @@ sycl::event dot_product_tree_impl(sycl::queue &exec_q,
1120
1117
InputIndexerT, ResIndexerT>;
1121
1118
using ReductionIndexerT = dpctl::tensor::offset_utils::NoOpIndexer;
1122
1119
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};
1126
1122
const ResIndexerT res_iter_indexer{
1127
1123
batch_nd, batch_res_offset,
1128
1124
/* shape */ batch_shape_and_strides,
@@ -1200,9 +1196,8 @@ dot_product_contig_tree_impl(sycl::queue &exec_q,
1200
1196
dpctl::tensor::offset_utils::TwoOffsets_CombinedIndexer<
1201
1197
NoOpIndexerT, NoOpIndexerT>;
1202
1198
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};
1206
1201
const InputOutputBatchIndexerT inp_out_batch_indexer{
1207
1202
inp_batch_indexer, inp_batch_indexer, NoOpIndexerT{}};
1208
1203
constexpr ReductionIndexerT reduction_indexer{NoOpIndexerT{},
@@ -1238,9 +1233,8 @@ dot_product_contig_tree_impl(sycl::queue &exec_q,
1238
1233
dpctl::tensor::offset_utils::TwoOffsets_CombinedIndexer<
1239
1234
NoOpIndexerT, NoOpIndexerT>;
1240
1235
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};
1244
1238
const InputOutputBatchIndexerT inp_out_batch_indexer{
1245
1239
inp_batch_indexer, inp_batch_indexer, NoOpIndexerT{}};
1246
1240
constexpr ReductionIndexerT reduction_indexer{NoOpIndexerT{},
@@ -1307,8 +1301,8 @@ dot_product_contig_tree_impl(sycl::queue &exec_q,
1307
1301
NoOpIndexerT, NoOpIndexerT>;
1308
1302
1309
1303
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};
1312
1306
const InputOutputBatchIndexerT inp_out_batch_indexer{
1313
1307
inp_batch_indexer, inp_batch_indexer, NoOpIndexerT{}};
1314
1308
constexpr ReductionIndexerT reduction_indexer{NoOpIndexerT{},
@@ -1343,9 +1337,8 @@ dot_product_contig_tree_impl(sycl::queue &exec_q,
1343
1337
InputIndexerT, ResIndexerT>;
1344
1338
using ReductionIndexerT = dpctl::tensor::offset_utils::NoOpIndexer;
1345
1339
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_};
1349
1342
constexpr ResIndexerT res_iter_indexer{};
1350
1343
1351
1344
const InputOutputIterIndexerT in_out_iter_indexer{inp_indexer,
@@ -1374,9 +1367,8 @@ dot_product_contig_tree_impl(sycl::queue &exec_q,
1374
1367
InputIndexerT, ResIndexerT>;
1375
1368
using ReductionIndexerT = dpctl::tensor::offset_utils::NoOpIndexer;
1376
1369
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};
1380
1372
constexpr ResIndexerT res_iter_indexer{};
1381
1373
1382
1374
const InputOutputIterIndexerT in_out_iter_indexer{inp_indexer,
0 commit comments