mirror of
https://github.com/ml-explore/mlx.git
synced 2025-10-19 16:48:10 +08:00
fix custom kernel test (#2510)
This commit is contained in:
@@ -2971,7 +2971,7 @@ array gather(
|
||||
}
|
||||
for (auto& x : indices) {
|
||||
if (x.dtype() == bool_) {
|
||||
throw("[Gather] Boolean indices not supported.");
|
||||
throw std::invalid_argument("[Gather] Boolean indices not supported.");
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user