You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I found something interesting when narrowing the reproducer found in #57331 (formerly SR-14989). If you make setA only differentiable with respect to a, then it triggers an incorrect error like the one described in this issue. This should be fixed in #41174.
(base) philipturner@m1-max-mbp bug % swiftc file.swift
file.swift:12:4: error: cannot differentiate functions with both an 'inout' parameter and a result
@differentiable(reverse, wrt: a)
^
Additional Detail from JIRA
md5: aec1df3f108a4e0b962fbcb0167a08a4
is blocked by:
Issue Description:
Declaring a differentiable function with more than one inout parameter results in the compiler error:
"Cannot differentiate functions with both an 'inout' parameter and a result"
The text was updated successfully, but these errors were encountered: