Navigation Menu

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-14237] [AutoDiff] possible incorrect derivative involving control flow and/or subscripts #55676

Open
marcrasi mannequin opened this issue Jul 16, 2020 · 0 comments
Open
Labels
AutoDiff bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. compiler The Swift compiler in itself

Comments

@marcrasi
Copy link
Mannequin

marcrasi mannequin commented Jul 16, 2020

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

md5: d97d0704f37c93d6f660d64df5b59779

Issue Description:

To reproduce:

  1. Checkout 0147ee47f3030ed7392197d6659376e757cd2dae of https://github.com/borglab/SwiftFusion.
  2. Uncomment [this return statement](https://github.com/borglab/SwiftFusion/blob/0147ee47f3030ed7392197d6659376e757cd2dae/Sources/SwiftFusion/Inference/BetweenFactorAlternative.swift#L34).
  3. swift test --enable-test-discovery --filter testGtsamPose3SLAMExampleChordal
  4. You should get "error: FactorGraphTests.testGtsamPose3SLAMExampleChordal : failed - failed to find the global minimum after 10 attempts".

We have moved on to different ways of achieving the same thing, so this isn't an immediate problem. I'm just filing this bug so that we can eventually fix the underlying problem.

The reproducer is currently very complicated. I may work on reducing it later when I have some time, and I'll post my reduction in this issue.

@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

0 participants