mirror of
https://github.com/ml-explore/mlx.git
synced 2025-06-24 09:21:16 +08:00
Do not check event.is_signaled() in eval_impl (#2230)
This commit is contained in:
parent
db5a7c6192
commit
95b7551d65
@ -208,9 +208,7 @@ array eval_impl(std::vector<array> outputs, bool async) {
|
|||||||
// output arrays stream
|
// output arrays stream
|
||||||
fences[it->second].wait(stream, in);
|
fences[it->second].wait(stream, in);
|
||||||
} else if (in.event().valid()) {
|
} else if (in.event().valid()) {
|
||||||
if (in.event().is_signaled()) {
|
if (in.event().stream() != stream) {
|
||||||
in.detach_event();
|
|
||||||
} else if (in.event().stream() != stream) {
|
|
||||||
// Use event to wait across async eval
|
// Use event to wait across async eval
|
||||||
in.event().wait(stream);
|
in.event().wait(stream);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user