Skip to content

Commit 4e2789d

Browse files
committed
Corrected min contig variant typo
These variants were using ``sycl::maximum`` rather than ``sycl::minimum``
1 parent f2babe8 commit 4e2789d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dpctl/tensor/libtensor/include/kernels/reductions.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2458,7 +2458,7 @@ struct MinOverAxis1TempsContigFactory
24582458
{
24592459
if constexpr (std::is_integral_v<dstTy> &&
24602460
!std::is_same_v<dstTy, bool>) {
2461-
using ReductionOpT = sycl::maximum<dstTy>;
2461+
using ReductionOpT = sycl::minimum<dstTy>;
24622462
return dpctl::tensor::kernels::
24632463
reduction_axis1_over_group_temps_contig_impl<srcTy, dstTy,
24642464
ReductionOpT>;
@@ -2486,7 +2486,7 @@ struct MinOverAxis0TempsContigFactory
24862486
{
24872487
if constexpr (std::is_integral_v<dstTy> &&
24882488
!std::is_same_v<dstTy, bool>) {
2489-
using ReductionOpT = sycl::maximum<dstTy>;
2489+
using ReductionOpT = sycl::minimum<dstTy>;
24902490
return dpctl::tensor::kernels::
24912491
reduction_axis0_over_group_temps_contig_impl<srcTy, dstTy,
24922492
ReductionOpT>;

0 commit comments

Comments
 (0)