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

Fix method ambiguity errors with PDMats 0.10 #81

Merged
merged 5 commits into from
Aug 14, 2020

Conversation

devmotion
Copy link
Contributor

Since PDMats 0.10 AbstractPDMat <: AbstractMatrix, which leads to method ambiguity errors when calling, e.g., \(::PDMat, ::TrackedMatrix). We observed these errors with Turing (see, e.g., https://travis-ci.com/github/TuringLang/Turing.jl/jobs/371186552 and TuringLang/Turing.jl#1358). This PR fixes the method ambiguity errors (tests of Turing master pass with this branch).

@devmotion
Copy link
Contributor Author

Fixes #46 as well.

Copy link
Member

@willtebbutt willtebbutt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Broadly looks good to me. Just one point I'd like addressed then happy to merge.

test/tracker.jl Outdated Show resolved Hide resolved
Copy link
Member

@willtebbutt willtebbutt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

Will merge once CI passes.

@willtebbutt willtebbutt merged commit 6f06a2e into FluxML:master Aug 14, 2020
@devmotion devmotion deleted the pdmats branch August 14, 2020 15:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants