The derivative of Complex.init(_:_:) is broken with the current Xcode toolchain.

Remove it for now; it'll still be present on the -5.3 branch, so we'll pick it up again when we're able to.
This commit is contained in:
Stephen Canon committed 2020-05-01 08:50:32 -04:00
1 parent 5ae8cd103a
commit 750170404a
1 file changed
-10
@@ -19,16 +19,6 @@ where RealType: Differentiable, RealType.TangentVector == RealType {
extension Complex
where RealType: Differentiable, RealType.TangentVector == RealType {
@derivative(of: init(_:_:))
@usableFromInline
static func _derivativeInit(
_ real: RealType,
_ imaginary: RealType
) -> (value: Complex, pullback: (Complex) -> (RealType, RealType)) {
(value: .init(real, imaginary), pullback: { v in
(v.real, v.imaginary)
})
}
@derivative(of: real)
@usableFromInline