fix custom kernel test (#2510)

This commit is contained in:
Awni Hannun
2025-08-18 06:45:59 -07:00
committed by GitHub
parent 1df9887998
commit c5fcd5b61b
3 changed files with 4 additions and 4 deletions

View File

@@ -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.");
}
}