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-9695] [AD] global closure func cannot be AD #52135

Closed
swift-ci opened this issue Jan 17, 2019 · 3 comments
Closed

[SR-9695] [AD] global closure func cannot be AD #52135

swift-ci opened this issue Jan 17, 2019 · 3 comments
Assignees
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. swift for tensorflow

Comments

@swift-ci
Copy link
Collaborator

Previous ID SR-9695
Radar None
Original Reporter xiejw (JIRA User)
Type Bug
Status Resolved
Resolution Done
Additional Detail from JIRA
Votes 0
Component/s Swift for TensorFlow
Labels Bug
Assignee @rxwei
Priority Medium

md5: 19f9cc2ee28117be7197166a9d6f080b

Issue Description:

-> cat simple.swift
let foo1 = { (x: Float, y: Float) -> Float in
return x * y
}
print(gradient(at: 3, 4, in: foo1))

  • -> swiftc simple.swift
    simple.swift:4:31: error: function is not differentiable
    print(gradient(at: 3, 4, in: foo1))
@rxwei
Copy link
Member

rxwei commented Jan 18, 2019

This is bit of a complicated case to solve, but I'm almost done.

@swift-ci
Copy link
Collaborator Author

Comment by Jianwei Xie (JIRA)

Thanks Richard. I do not feel this is super common case. But just odd 🙁

@rxwei
Copy link
Member

rxwei commented Jan 20, 2019

#22004

@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
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. swift for tensorflow
Projects
None yet
Development

No branches or pull requests

2 participants