mirror of
https://github.com/ml-explore/mlx.git
synced 2025-08-21 12:06:42 +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:
parent
358e1fd6ab
commit
c417e42116
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user