- 
                Notifications
    You must be signed in to change notification settings 
- Fork 95
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Found here: FluxML/Zygote.jl#1297
julia> using ChainRules, ChainRulesCore, ChainRulesTestUtils
julia> const CFG = ChainRulesTestUtils.TestConfig();
julia> foldl(/, (), init=0)
0
julia> rrule(CFG, foldl, /, (), init=0)
ERROR: BoundsError: attempt to access Tuple{} at index [0]
Stacktrace:
 [1] getindex(t::Tuple, i::Int64)
   @ Base ./tuple.jl:29
 [2] last(a::Tuple{})
   @ Base ./abstractarray.jl:500
 [3] rrule(config::ChainRulesTestUtils.TestConfig, ::typeof(foldl), op::typeof(/), x::Tuple{}; init::Int64)
   @ ChainRules ~/.julia/packages/ChainRules/fgVxV/src/rulesets/Base/mapreduce.jl:448Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working