swift
e7d8b324 - [AutoDiff] Fix memory leaks.

Commit
6 years ago
[AutoDiff] Fix memory leaks. The primal value struct should not be retained before the partial application of the pullback because it's already `+1` and owned solely by the pullback. Original results should be retained because they are separately returned along with the pullback.
Author
Parents
Loading