Fix np bfloat16 misinterpreted as complex (#3146)

Co-authored-by: Cheng <git@zcbenz.com>
This commit is contained in:
Kellen Sun
2026-03-30 19:04:55 -04:00
committed by GitHub
parent 0ff1115a46
commit 8a6d28713c
6 changed files with 118 additions and 56 deletions
+1 -1
View File
@@ -1765,7 +1765,7 @@ void init_ops(nb::module_& m) {
)pbdoc");
m.def(
"asarray",
[](const ArrayInitType& a, std::optional<mx::Dtype> dtype) {
[](const nb::object& a, std::optional<mx::Dtype> dtype) {
return create_array(a, dtype);
},
nb::arg(),