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-14238] [AutoDiff] Apparent autodiff bug #55834

Open
dabrahams opened this issue Aug 14, 2020 · 0 comments
Open

[SR-14238] [AutoDiff] Apparent autodiff bug #55834

dabrahams opened this issue Aug 14, 2020 · 0 comments
Assignees
Labels
AutoDiff bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. compiler The Swift compiler in itself

Comments

@dabrahams
Copy link
Collaborator

Previous ID SR-14238
Radar None
Original Reporter @dabrahams
Type Bug
Additional Detail from JIRA
Votes 0
Component/s Compiler
Labels Bug, AutoDiff
Assignee @dan-zheng
Priority Medium

md5: d24f51ff1822d1985c7898e29da0c6d0

Issue Description:

The very last commit in the tag https://github.com/borglab/SwiftFusion/tree/autodiff-unsticking is a workaround for what I think is a compiler bug. If you compile the previous state of that branch, you get:

/Users/dabrahams/src/SwiftFusion/Sources/SwiftFusion/Core/Vector.swift:178:41: error: expression is not differentiable
  public var flatTensor: Tensor<Double> {
                                        ^
/Users/dabrahams/src/SwiftFusion/Sources/SwiftFusion/Core/Vector.swift:178:41: note: function call is not differentiable because generic requirements are not met: 'Self : ScalarsInitializableVector'
  public var flatTensor: Tensor<Double> {
                                        ^
@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
AutoDiff bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. compiler The Swift compiler in itself
Projects
None yet
Development

No branches or pull requests

1 participant