mirror of
https://github.com/ml-explore/mlx.git
synced 2025-09-01 12:49:44 +08:00
[Fix] minor typo in default argument for argpartition's "axis" parameter (#1125)
According to the document, argpartition's axis parameter can be None, but due to a previous typo it can't really accepts a None value.
This commit is contained in:
@@ -2527,7 +2527,7 @@ void init_ops(nb::module_& m) {
|
||||
},
|
||||
nb::arg(),
|
||||
"kth"_a,
|
||||
"axis"_a = -1,
|
||||
"axis"_a.none() = -1,
|
||||
nb::kw_only(),
|
||||
"stream"_a = nb::none(),
|
||||
nb::sig(
|
||||
|
Reference in New Issue
Block a user