Fix detach for multi-output primitives (#480)

This commit is contained in:
Angelos Katharopoulos
2024-01-17 14:08:07 -08:00
committed by GitHub
parent 78102a47ad
commit 135fd796d2
3 changed files with 6 additions and 6 deletions

View File

@@ -71,9 +71,6 @@ std::function<void()> make_task(
[s, arr, p = std::move(p)](MTL::CommandBuffer* cbuf) mutable {
if (!arr.is_tracer()) {
arr.detach();
for (auto s : arr.siblings()) {
s.detach();
}
}
p->set_value();
scheduler::notify_task_completion(s);