swiftlang / swift

The Swift Programming Language
https://swift.org
Apache License 2.0
67.28k stars 10.33k forks source link

[SR-11853] [AutoDiff] [SILGen] Support application of derivatives/transposes that throw. #54259

Open rxwei opened 4 years ago

rxwei commented 4 years ago
Previous ID SR-11853
Radar rdar://problem/57549484
Original Reporter @rxwei
Type New Feature
Additional Detail from JIRA | | | |------------------|-----------------| |Votes | 0 | |Component/s | Compiler | |Labels | New Feature, AutoDiff | |Assignee | None | |Priority | Medium | md5: c3ee583c9394c6c8cc16ca417aa5194d

Issue Description:

Add support for lowering Builtin.applyDerivative (used to be Builtin.autodiffApply) and Builtin.applyTranspose when the @differentiable/@differentiable(linear) function is throwing.

beccadax commented 4 years ago

@swift-ci create