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

Change eigen and svd pullbacks to accept Composite{Any} #340

Merged
merged 2 commits into from
Jan 7, 2021

Conversation

sethaxen
Copy link
Member

@sethaxen sethaxen commented Jan 7, 2021

In FluxML/Zygote.jl#875, I discovered that Zygote passes Composite{Any} types to our rrules. #321 and #323 added rrules whose pullbacks were constrained to Composite{<:Eigen} and Composite{<:SVD}, which would cause Zygote to error. This PR changes those signatures to ::Composite. It adds no new tests.

@sethaxen sethaxen requested a review from oxinabox January 7, 2021 22:55
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.

Ah, yeah, this is a thing at the minute. We should be able to constrain again in the future.

@sethaxen sethaxen merged commit 26d03d0 into JuliaDiff:master Jan 7, 2021
@sethaxen sethaxen deleted the usecompositeany branch January 7, 2021 23:43
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