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

Deal with StaticArrays chain rules #65

Closed
moble opened this issue Oct 18, 2024 · 0 comments
Closed

Deal with StaticArrays chain rules #65

moble opened this issue Oct 18, 2024 · 0 comments

Comments

@moble
Copy link
Owner

moble commented Oct 18, 2024

Presumably since StaticArrays 1.8.1, my extension for combining static arrays and chain rules has been producing warnings like those below. Evidently my method for detecting that this has already been done is not working.

WARNING: Method definition (::Type{ChainRulesCore.ProjectTo{P, D} where D<:(NamedTuple{names, T} where T<:Tuple where names) where P})(StaticArraysCore.SArray{S, T, N, L} where L where N) where {S, T} in module StaticArraysChainRulesCoreExt at /home/runner/.julia/packages/StaticArrays/MSJcA/ext/StaticArraysChainRulesCoreExt.jl:17 overwritten in module QuaternionicChainRulesCoreExt at /home/runner/.julia/packages/Quaternionic/vdgFb/ext/QuaternionicChainRulesCoreExt.jl:22.
WARNING: Method definition (::ChainRulesCore.ProjectTo{var"#s1"<:(ChainRulesCore.Tangent{var"#s2", T} where T where var"#s2"<:Tuple), D<:(NamedTuple{names, T} where T<:Tuple where names)})(StaticArraysCore.SArray{S, T, N, L} where L where N where T where S<:Tuple) in module StaticArraysChainRulesCoreExt at /home/runner/.julia/packages/StaticArrays/MSJcA/ext/StaticArraysChainRulesCoreExt.jl:10 overwritten in module QuaternionicChainRulesCoreExt at /home/runner/.julia/packages/Quaternionic/vdgFb/ext/QuaternionicChainRulesCoreExt.jl:17.
WARNING: Method definition (::ChainRulesCore.ProjectTo{StaticArraysCore.SArray{S, T, N, L} where L where N where T where S<:Tuple, D<:(NamedTuple{names, T} where T<:Tuple where names)})(AbstractArray{S, M}) where {S, M} in module StaticArraysChainRulesCoreExt at /home/runner/.julia/packages/StaticArrays/MSJcA/ext/StaticArraysChainRulesCoreExt.jl:25 overwritten in module QuaternionicChainRulesCoreExt at /home/runner/.julia/packages/Quaternionic/vdgFb/ext/QuaternionicChainRulesCoreExt.jl:25.
WARNING: Method definition rrule(Type{T}, Tuple) where {T<:(StaticArraysCore.SArray{S, T, N, L} where L where N where T where S<:Tuple)} in module StaticArraysChainRulesCoreExt at /home/runner/.julia/packages/StaticArrays/MSJcA/ext/StaticArraysChainRulesCoreExt.jl:28 overwritten in module QuaternionicChainRulesCoreExt at /home/runner/.julia/packages/Quaternionic/vdgFb/ext/QuaternionicChainRulesCoreExt.jl:28.
moble added a commit that referenced this issue Oct 22, 2024
@moble moble closed this as completed in 391450b Oct 22, 2024
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

No branches or pull requests

1 participant