Async eval (#972)

This commit is contained in:
Awni Hannun
2024-04-09 18:34:00 -07:00
committed by GitHub
parent fffe072028
commit 99abb9eff4
5 changed files with 70 additions and 3 deletions

View File

@@ -93,7 +93,9 @@ void array::detach() {
}
void array::eval() {
mlx::core::eval({*this});
if (!is_evaled()) {
mlx::core::eval({*this});
}
}
bool array::is_tracer() const {