mirror of
https://github.com/ml-explore/mlx.git
synced 2025-06-25 01:41:17 +08:00
Fix binary op dispatch (#584)
This commit is contained in:
parent
3c2f192345
commit
65d0b8df9f
@ -60,7 +60,7 @@ void binary_op(
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
kname << op << type_to_name(a);
|
kname << op << type_to_name(a);
|
||||||
if (bopt == General && out.ndim() <= MAX_BINARY_SPECIALIZED_DIMS) {
|
if (bopt == General && shape.size() <= MAX_BINARY_SPECIALIZED_DIMS) {
|
||||||
kname << "_" << shape.size();
|
kname << "_" << shape.size();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -158,7 +158,7 @@ void binary_op(
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
kname << op << type_to_name(a);
|
kname << op << type_to_name(a);
|
||||||
if (bopt == General && out.ndim() <= MAX_BINARY_SPECIALIZED_DIMS) {
|
if (bopt == General && shape.size() <= MAX_BINARY_SPECIALIZED_DIMS) {
|
||||||
kname << "_" << shape.size();
|
kname << "_" << shape.size();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user