mirror of
https://github.com/ml-explore/mlx.git
synced 2025-08-22 04:56:41 +08:00
fix test (#627)
This commit is contained in:
parent
ebfd3618b0
commit
5c3ac52dd7
@ -1110,7 +1110,8 @@ void init_array(py::module_& m) {
|
|||||||
py::kw_only(),
|
py::kw_only(),
|
||||||
"stream"_a = none,
|
"stream"_a = none,
|
||||||
"See :func:`abs`.")
|
"See :func:`abs`.")
|
||||||
.def("__abs__", &mlx::core::abs, "See :func:`abs`.")
|
.def(
|
||||||
|
"__abs__", [](const array& a) { return abs(a); }, "See :func:`abs`.")
|
||||||
.def(
|
.def(
|
||||||
"square",
|
"square",
|
||||||
&square,
|
&square,
|
||||||
|
Loading…
Reference in New Issue
Block a user