Skip to content

[AutoDiff upstream] [SIL] Add the 'linear_function' and 'linear_function_extract' instructions #30638

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

Conversation

ematejska
Copy link
Contributor

@ematejska ematejska commented Mar 25, 2020

Add the linear_function and linear_function_extract SIL instructions.

linear_function' bundles a function with its transpose function into a
@differentiable(linear) function.

linear_function_extract extracts the original function or a transpose function from the given
@differentiable(linear) function.

This resolves TF-1143 and TF-1142.

This builds on top of #30579.

@ematejska
Copy link
Contributor Author

@swift-ci please test

@ematejska ematejska requested review from dan-zheng and marcrasi March 25, 2020 17:51
Copy link
Contributor

@dan-zheng dan-zheng left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@ematejska
Copy link
Contributor Author

@swift-ci please smoke test

@swift-ci
Copy link
Contributor

Build failed
Swift Test Linux Platform
Git Sha - df761be

@marcrasi
Copy link

@swift-ci please smoke test linux

@marcrasi
Copy link

@swift-ci please test linux

@ematejska ematejska requested a review from jckarter March 26, 2020 16:32
@dan-zheng dan-zheng merged commit 75691d6 into swiftlang:master Mar 26, 2020
ematejska added a commit to ematejska/swift that referenced this pull request Mar 26, 2020
ematejska added a commit to ematejska/swift that referenced this pull request Mar 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants