mirror of
https://github.com/ml-explore/mlx.git
synced 2025-09-17 09:18:12 +08:00
@@ -114,7 +114,7 @@ void CommandEncoder::synchronize() {
|
||||
std::future<void> f = p->get_future();
|
||||
add_completed_handler([p = std::move(p)]() { p->set_value(); });
|
||||
worker_.end_batch();
|
||||
worker_.commit();
|
||||
commit();
|
||||
f.wait();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user