ChainRulesTestUtils.jl
ChainRulesTestUtils.jl copied to clipboard
`test_frule` confused about Tuples, and `Fix1`
This seems to confuse the tester, it should not expect a tuple length 10 (the input) but shorter.
https://github.com/JuliaDiff/ChainRules.jl/pull/570/files#diff-14d216cb53721d9360bbbcc399d93fff67f2594bd388162abbbe82c59ad1ba9fR229
@test_skip test_frule(filter, >(0.5) ⊢ NoTangent(), xt10; check_inferred=false)
check_result.jl:104
Expression: ActualPrimal === ExpectedPrimal
Evaluated: NTuple{10, Float64} === NTuple{6, Float64}
Also notice that >(0.5) is not handled, hence the ⊢ NoTangent() work-around.
MethodError: no method matching zero(::Base.Fix2{typeof(>), Float64})