mirror of
https://github.com/ml-explore/mlx.git
synced 2025-09-19 19:38:16 +08:00
fix broadcast bug in bitwise ops (#1157)
This commit is contained in:
@@ -4321,8 +4321,9 @@ array bitwise_impl(
|
||||
}
|
||||
auto inputs =
|
||||
broadcast_arrays(astype(a, out_type, s), astype(b, out_type, s), s);
|
||||
auto& out_shape = inputs[0].shape();
|
||||
return array(
|
||||
a.shape(),
|
||||
out_shape,
|
||||
out_type,
|
||||
std::make_shared<BitwiseBinary>(to_stream(s), op),
|
||||
std::move(inputs));
|
||||
|
Reference in New Issue
Block a user