mirror of
https://github.com/ml-explore/mlx.git
synced 2025-07-27 11:31:21 +08:00
array.swapaxes should point to swapaxes free function (#441)
This commit is contained in:
parent
006d01ba42
commit
29081204d1
@ -1147,7 +1147,7 @@ void init_array(py::module_& m) {
|
|||||||
"axis2"_a,
|
"axis2"_a,
|
||||||
py::kw_only(),
|
py::kw_only(),
|
||||||
"stream"_a = none,
|
"stream"_a = none,
|
||||||
"See :func:`moveaxis`.")
|
"See :func:`swapaxes`.")
|
||||||
.def(
|
.def(
|
||||||
"transpose",
|
"transpose",
|
||||||
[](const array& a, py::args axes, StreamOrDevice s) {
|
[](const array& a, py::args axes, StreamOrDevice s) {
|
||||||
|
Loading…
Reference in New Issue
Block a user