We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
tuple_element_addr
md5: 0184cfd78c8d9dc3932d9cb75b334ce8
Issue Description:
func tupleElementGeneric<T>(_ x: T, _ y: T) -> [T] { var tuple = (x, y) return [tuple.0, tuple.1] } let pb = pullback(at: Float(3), 4, in: { tupleElementGeneric($0, $1) }) print(pb(.init([1, 1]))) // Actual: (0.0, 2.0) // Expected: (1.0, 1.0)
The text was updated successfully, but these errors were encountered:
Throws an error on the 05/24 toolchain.
/Users/kshitij/workspace/scratch/test.swift:7:18: error: incorrect argument label in call (have 'at:_:in:', expected 'at:_:of:') 5 | return [tuple.0, tuple.1] 6 | } 7 | let pb = pullback(at: Float(3), 4, in: { tupleElementGeneric($0, $1) }) | `- error: incorrect argument label in call (have 'at:_:in:', expected 'at:_:of:') 8 | print(pb(.init([1, 1]))) 9 | /Users/kshitij/workspace/scratch/test.swift:8:11: error: cannot infer contextual base in reference to member 'init' 6 | } 7 | let pb = pullback(at: Float(3), 4, in: { tupleElementGeneric($0, $1) }) 8 | print(pb(.init([1, 1]))) | `- error: cannot infer contextual base in reference to member 'init' 9 | 10 | // Actual: (0.0, 2.0)
Sorry, something went wrong.
[AutoDiff] Fix derivative for array literal with tuple_element_addr elts
6c89b10
The `adjIndex` was not incremented due to missed `remapType`. Fixes swiftlang#54214
Successfully merging a pull request may close this issue.
Additional Detail from JIRA
md5: 0184cfd78c8d9dc3932d9cb75b334ce8
Issue Description:
The text was updated successfully, but these errors were encountered: