mirror of
https://github.com/ml-explore/mlx.git
synced 2025-08-21 20:46:46 +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(),
|
||||
"stream"_a = none,
|
||||
"See :func:`abs`.")
|
||||
.def("__abs__", &mlx::core::abs, "See :func:`abs`.")
|
||||
.def(
|
||||
"__abs__", [](const array& a) { return abs(a); }, "See :func:`abs`.")
|
||||
.def(
|
||||
"square",
|
||||
&square,
|
||||
|
Loading…
Reference in New Issue
Block a user