mirror of
https://github.com/ml-explore/mlx.git
synced 2025-12-15 01:19:21 +08:00
@@ -1276,5 +1276,14 @@ void init_array(nb::module_& m) {
|
||||
},
|
||||
nb::kw_only(),
|
||||
"stream"_a = nb::none(),
|
||||
"See :func:`conj`.");
|
||||
"See :func:`conj`.")
|
||||
.def(
|
||||
"view",
|
||||
[](const ScalarOrArray& a, const Dtype& dtype, StreamOrDevice s) {
|
||||
return view(to_array(a), dtype, s);
|
||||
},
|
||||
"dtype"_a,
|
||||
nb::kw_only(),
|
||||
"stream"_a = nb::none(),
|
||||
"See :func:`view`.");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user