Skip to content

Loading ReverseDiff and UnicodePlots together and looking at their invalidations prints tens of thousands of lines #362

@KristofferC

Description

@KristofferC
invalidations = @snoopr ReverseDiff, UnicodePlots
tree = invalidation_trees(invalidations);
...
  inserting materialize(bc::Base.Broadcast.Broadcasted{<:Any, <:Any, typeof(min), var"#s32"} where var"#s32"<:Tuple{AbstractArray{<:Number}, ReverseDiff.TrackedArray}) @ ReverseDiff ~/.julia/packages/ReverseDiff/Zu4v6/src/derivatives/broadcast.jl:282 invalidated:
   backedges:     1: superseding materialize(bc::Base.Broadcast.Broadcasted) @ Base.Broadcast broadcast.jl:873 with MethodInstance for Base.Broadcast.materialize(::Base.Broadcast.Broadcasted) (1 children)
                  2: superseding materialize(bc::Base.Broadcast.Broadcasted) @ Base.Broadcast broadcast.jl:873 with MethodInstance for Base.Broadcast.materialize(::Base.Broadcast.Broadcasted) (1 children)
                ..
...
children)
              59669: superseding materialize(bc::Base.Broadcast.Broadcasted) @ Base.Broadcast broadcast.jl:873 with MethodInstance for Base.Broadcast.materialize(::Base.Broadcast.Broadcasted{_A, Nothing} where _A<:Union{Nothing, Base.Broadcast.BroadcastStyle}) (1 children)
              59670: superseding materialize(bc::Base.Broadcast.Broadcasted) @ Base.Broadcast broadcast.jl:873 with MethodInstance for Base.Broadcast.materialize(::Base.Broadcast.Broadcasted{_A, Nothing} where _A<:Union{Nothing, Base.Broadcast.BroadcastStyle}) (1 children)
              59671: superseding materialize(bc::Base.Broadcast.Broadcasted) @ Base.Broadcast broadcast.jl:873 with MethodInstance for Base.Broadcast.materialize(::Base.Broadcast.Broadcasted{_A, Nothing} where _A<:Union{Nothing, Base.Broadcast.BroadcastStyle}) (1 children)
...

should probably be collapsed somehow. Also I don't really understand where this many methods can come from:

julia> length(uinvalidated(invalidations))
582

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions