Skip to content
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

[SR-13664] Add differentiability_witness_function instruction #54028

Closed
dan-zheng opened this issue Oct 15, 2019 · 1 comment
Closed

[SR-13664] Add differentiability_witness_function instruction #54028

dan-zheng opened this issue Oct 15, 2019 · 1 comment
Assignees

Comments

@dan-zheng
Copy link
Collaborator

Previous ID SR-13664
Radar None
Original Reporter @dan-zheng
Type Sub-task
Status Closed
Resolution Done
Additional Detail from JIRA
Votes 0
Component/s
Labels Sub-task
Assignee @dan-zheng
Priority Medium

md5: a4d5e73691216df6469ca9e994593cad

Parent-Task:

  • SR-13659 Retroactive derivative registration

Issue Description:

The differentiability_witness_function instruction is similar to class_method
and witness_method instructions.

It looks up a differentiability witness function (JVP, VJP, or transpose) for a
referenced function using SIL differentiability witnesses.

%vjp = differentiability_witness_function [vjp] [parameters 0 1] [results 0] \
    <T where T: Differentiable, T == T.TangentVector> \
    @generic : $@convention(thin) <T> (@in_guaranteed T, Float) -> @out T

differentiability_witness_function will be generated by the differentiation transform
and will be IRGen'd to extract witness functions from SIL differentiability witnesses.

@dan-zheng
Copy link
Collaborator Author

Done in #27719

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
This issue was closed.
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

No branches or pull requests

1 participant