Skip to content

Deal with StaticArrays chain rules #65

@moble

Description

@moble

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions