Fix np bfloat16 misinterpreted as complex (#3146)
Co-authored-by: Cheng <git@zcbenz.com>
This commit is contained in:
+1
-1
@@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user