Skip to content

frule_via_ad tries to call NoTangent #277

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Open
gdalle opened this issue Mar 6, 2024 · 1 comment
Open

frule_via_ad tries to call NoTangent #277

gdalle opened this issue Mar 6, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@gdalle
Copy link
Member

gdalle commented Mar 6, 2024

julia> using ChainRulesCore, Diffractor

julia> ChainRulesCore.frule_via_ad(Diffractor.DiffractorRuleConfig(), (NoTangent(), 1), exp, 1)
ERROR: MethodError: objects of type NoTangent are not callable
Stacktrace:
 [1] ∂☆nomethd(args::Any)
   @ Diffractor ~/.julia/packages/Diffractor/v1WuP/src/stage1/recurse_fwd.jl:66
 [2] macro expansion
   @ ~/.julia/packages/Diffractor/v1WuP/src/stage1/recurse_fwd.jl:0 [inlined]
 [3] (::Diffractor.∂☆recurse{})(::Diffractor.TangentBundle{…}, ::Diffractor.TangentBundle{…})
   @ Diffractor ~/.julia/packages/Diffractor/v1WuP/src/stage1/recurse_fwd.jl:103
 [4] (::Diffractor.∂☆internal{})(::Diffractor.TangentBundle{…}, ::Vararg{…})
   @ Diffractor ~/.julia/packages/Diffractor/v1WuP/src/stage1/forward.jl:114
 [5] frule_via_ad(::Diffractor.DiffractorRuleConfig, ::Tuple{NoTangent, Int64}, ::Function, ::Vararg{Any})
   @ Diffractor ~/.julia/packages/Diffractor/v1WuP/src/stage1/forward.jl:130
 [6] top-level scope
   @ ~/Work/GitHub/Julia/DifferentiationInterface.jl/test/diffractor.jl:18
Some type information was truncated. Use `show(err)` to see complete types.
@gdalle
Copy link
Member Author

gdalle commented Mar 6, 2024

@adrhill this is why Diffractor tests fail

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants