mirror of
https://github.com/ml-explore/mlx.git
synced 2025-06-26 02:33:21 +08:00
Fix row reduce with very few rows (#1447)
This commit is contained in:
parent
4a64d4bff1
commit
bacced53d3
@ -449,7 +449,8 @@ void row_reduce_general_dispatch(
|
||||
}
|
||||
|
||||
// Case 2: Contiguous reduce without non-row reductions
|
||||
if (plan.type == ContiguousReduce && args.reduce_ndim == 0) {
|
||||
if (plan.type == ContiguousReduce && args.reduce_ndim == 0 &&
|
||||
in.size() / args.row_size >= 32) {
|
||||
return row_reduce_simple(in, out, op_name, args, compute_encoder, d, s);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user