Skip to content

ProjectTo(::AbstractSparseMatrix{Bool}) should be trivial #622

Open
@mcabbott

Description

@mcabbott

From FluxML/Zygote.jl#1428, these two should make the same ProjectTo{NoTangent}():

julia> using ChainRulesCore, SparseArrays

julia> ProjectTo(diagm([true, false]))
ProjectTo{NoTangent}()

julia> ProjectTo(spdiagm([true, false]))
ProjectTo{SparseMatrixCSC}(element = ProjectTo{NoTangent}(), axes = (Base.OneTo(2), Base.OneTo(2)), rowval = [1, 2], nzranges = UnitRange{Int64}[1:1, 2:2], colptr = [1, 2, 3])

Metadata

Metadata

Assignees

No one assigned

    Labels

    ProjectTorelated to the projection functionalitybugSomething isn't workinghelp wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions