-
Notifications
You must be signed in to change notification settings - Fork 70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error in exception handling with custom reverse rule #2290
Comments
Okay error message fixed by #2291 now shows )
ERROR: MethodError: no method matching augmented_primal(::RevConfigWidth{1, false, false, (false, false, false), false}, ::Const{typeof(evaluate!)}, ::Type{Const{Nothing}}, ::MixedDuplicated{SplineGrid{2, 2, Float32, Int32, SplineDimension{Float32, Int32, KnotVector{…}, Vector{…}, Vector{…}, Array{…}}, DefaultControlPoints{2, 2, Float32, Array{…}}, Nothing, Array{Float32, 3}, false}}, ::Duplicated{Array{Float32, 3}})
Closest candidates are:
augmented_primal(::RevConfig, ::Const{typeof(Enzyme.pmap)}, ::Type{Const{Nothing}}, ::BodyTy, ::Any, Annotation...) where {BodyTy, N}
@ Enzyme ~/git/Enzyme.jl/src/internal_rules.jl:337
augmented_primal(::RevConfigWidth{1}, ::Const{typeof(evaluate!)}, ::Type{RT}, ::Duplicated{<:SplineGrid}, ::Duplicated{<:Union{SplineGrids.AbstractControlPoints{Nin, Nout, Tv}, AbstractArray{Tv}} where {Nin, Nout, Tv}}; kwargs...) where RT
@ Main REPL[7]:1
augmented_primal(::RevConfig, ::Const{<:KernelAbstractions.Kernel}, ::Type{Const{Nothing}}, ::Any...; ndrange, workgroupsize) where N
@ EnzymeExt ~/.julia/packages/KernelAbstractions/mD0Rj/ext/EnzymeCore08Ext.jl:214
...
Stacktrace:
[1] custom_rule_method_error
@ ~/git/Enzyme.jl/src/rules/customrules.jl:445 [inlined]
[2] loss
@ ./REPL[16]:2 [inlined]
[3] loss
@ ./REPL[16]:0 [inlined]
[4] diffejulia_loss_1454_inner_1wrap
@ ./REPL[16]:0
[5] macro expansion
@ ~/git/Enzyme.jl/src/compiler.jl:5340 [inlined]
[6] enzyme_call
@ ~/git/Enzyme.jl/src/compiler.jl:4878 [inlined]
[7] CombinedAdjointThunk
@ ~/git/Enzyme.jl/src/compiler.jl:4750 [inlined]
[8] autodiff
@ ~/git/Enzyme.jl/src/Enzyme.jl:503 [inlined]
[9] autodiff(::ReverseMode{false, false, FFIABI, false, false}, ::typeof(loss), ::Type{Active}, ::Duplicated{Vector{Float32}}, ::Duplicated{SplineGrid{2, 2, Float32, Int32, SplineDimension{Float32, Int32, KnotVector{Float32, Int32, Vector{Float32}, Vector{Int32}}, Vector{Float32}, Vector{Int32}, Array{Float32, 3}}, DefaultControlPoints{2, 2, Float32, Array{Float32, 3}}, Nothing, Array{Float32, 3}, false}})
@ Enzyme ~/git/Enzyme.jl/src/Enzyme.jl:524
[10] top-level scope
@ REPL[20]:1
Some type information was truncated. Use `show(err)` to see complete types. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
MWE:
env:
Error + Stacktrace:
The text was updated successfully, but these errors were encountered: