mirror of
https://github.com/ml-explore/mlx.git
synced 2025-06-24 17:31:16 +08:00
Fix typo in row_reduce_small (#2179)
This commit is contained in:
parent
eca2f3eb97
commit
0751263dec
@ -224,7 +224,7 @@ template <
|
|||||||
|
|
||||||
if ((non_row_reductions < 32 && row_size <= 8) || non_row_reductions <= 8) {
|
if ((non_row_reductions < 32 && row_size <= 8) || non_row_reductions <= 8) {
|
||||||
// Simple loop over non_row_reductions and reduce the row in the thread.
|
// Simple loop over non_row_reductions and reduce the row in the thread.
|
||||||
IdxT out_idx = tid.x + tsize.y * IdxT(tid.y);
|
IdxT out_idx = tid.x + tsize.x * IdxT(tid.y);
|
||||||
in += elem_to_loc<IdxT>(out_idx, shape, strides, ndim);
|
in += elem_to_loc<IdxT>(out_idx, shape, strides, ndim);
|
||||||
|
|
||||||
for (uint r = 0; r < non_row_reductions; r++) {
|
for (uint r = 0; r < non_row_reductions; r++) {
|
||||||
|
Loading…
Reference in New Issue
Block a user