Skip to content

[AutoDiff] Fix activity analysis use-after-free crash. #28285

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 15, 2019

Conversation

dan-zheng
Copy link
Contributor

Remove DifferentiableActivityInfo::getLookupConformanceFunction, which
returned a LookupConformanceFn (type alias for LookupConformanceFn),
which does not own the underlying callable.

Add a DifferentiableActivityInfo::hasTangentSpace helper, which is easier
to use and avoids the issue.

Resolves TF-945.

Remove `DifferentiableActivityInfo::getLookupConformanceFunction`, which
returned a `LookupConformanceFn` (type alias for `LookupConformanceFn`),
which does not own the underlying callable.

Add a `DifferentiableActivityInfo::hasTangentSpace` helper, which is easier
to use and avoids the issue.

Resolves TF-945.
@dan-zheng dan-zheng added the tensorflow This is for "tensorflow" branch PRs. label Nov 15, 2019
@dan-zheng dan-zheng requested review from rxwei and marcrasi November 15, 2019 16:51
@dan-zheng
Copy link
Contributor Author

@swift-ci Please test tensorflow

@dan-zheng dan-zheng requested a review from bgogul November 15, 2019 19:21
@dan-zheng dan-zheng merged commit 04dca63 into swiftlang:tensorflow Nov 15, 2019
@dan-zheng dan-zheng deleted the TF-945-fix branch November 15, 2019 19:42
bgogul pushed a commit that referenced this pull request Nov 19, 2019
Remove `DifferentiableActivityInfo::getLookupConformanceFunction`, which
returned a `LookupConformanceFn` (type alias for `LookupConformanceFn`),
which does not own the underlying callable.

Add a `DifferentiableActivityInfo::hasTangentSpace` helper, which is easier
to use and avoids the issue.

Resolves TF-945.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tensorflow This is for "tensorflow" branch PRs.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants