Skip to content

Commit

Permalink
Fix one more lifetime issue with 5.10
Browse files Browse the repository at this point in the history
  • Loading branch information
liuliu committed Mar 28, 2024
1 parent c58c4f7 commit 153313f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions nnc/FunctionalAddons.swift
Original file line number Diff line number Diff line change
Expand Up @@ -710,6 +710,7 @@ extension DynamicGraph.Group where Element: DynamicGraph.AnyTensor {
_graph, cmd, ccv_nnc_no_hint, 0, _inputs, outputSize, _outputs, outputSize, outputSize,
_streamContext)
_outputs.deallocate()
withExtendedLifetime(v) {}
}
}

Expand Down Expand Up @@ -769,6 +770,7 @@ extension DynamicGraph.Group where Element: DynamicGraph.AnyTensor {
_graph, cmd, ccv_nnc_no_hint, 0, _inputs, outputSize, _outputs, outputSize, outputSize,
_streamContext)
_outputs.deallocate()
withExtendedLifetime(v) {}
}
}

Expand Down

0 comments on commit 153313f

Please sign in to comment.