Remove moves

This commit is contained in:
Angelos Katharopoulos
2025-10-02 11:16:17 -07:00
parent e42e06046e
commit 214b1c1a06

View File

@@ -339,13 +339,12 @@ void col_reduce(
// Small col reduce with a single or contiguous reduction axis
if (args.non_col_reductions == 1 && args.reduction_size <= 32 &&
args.reduction_stride % (16 / in.itemsize()) == 0) {
col_reduce_small(
encoder, in, out, reduce_type, axes, plan, std::move(args));
col_reduce_small(encoder, in, out, reduce_type, axes, plan, args);
return;
}
// Fallback col reduce
col_reduce_looped(encoder, in, out, reduce_type, axes, plan, std::move(args));
col_reduce_looped(encoder, in, out, reduce_type, axes, plan, args);
}
} // namespace mlx::core