Skip to content
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

No matching function wrapper found #50

Closed
schminin opened this issue Oct 8, 2022 · 5 comments
Closed

No matching function wrapper found #50

schminin opened this issue Oct 8, 2022 · 5 comments

Comments

@schminin
Copy link

schminin commented Oct 8, 2022

I am relatively new to Julia, so please excuse potentially basic questions. I tried running the Lotka Volterra scripts using Julia 1.8. Once I run the line "Optimization.solve(...)" I get a very long error message concluding in "No matching function wrapper was found!". I tried it in a new environment,... Do you have any recommendations how I could solve this?

@ChrisRackauckas
Copy link
Owner

Sorry, this was a bug introduced when compile times were fixed https://sciml.ai/news/2022/09/21/compile_time/ . It's fixed by SciML/SciMLSensitivity.jl#741 which will be in the next ecosystem update (so wait a day or so). Sorry about that!

@ChrisRackauckas
Copy link
Owner

Fixed

@schminin
Copy link
Author

Thank you for fixing the bug! Unfortunately, after updating all packages, I get a method error due to ambiguity (see below for details).

MethodError: setup(::Adam{Float64}, ::ComponentVector{Float64, Vector{Float64}, Tuple{Axis{(δ = 1, ude = ViewAxis(2:88, Axis(layer_1 = ViewAxis(1:15, Axis(weight = ViewAxis(1:10, ShapedAxis((5, 2), NamedTuple())), bias = ViewAxis(11:15, ShapedAxis((5, 1), NamedTuple())))), layer_2 = ViewAxis(16:45, Axis(weight = ViewAxis(1:25, ShapedAxis((5, 5), NamedTuple())), bias = ViewAxis(26:30, ShapedAxis((5, 1), NamedTuple())))), layer_3 = ViewAxis(46:75, Axis(weight = ViewAxis(1:25, ShapedAxis((5, 5), NamedTuple())), bias = ViewAxis(26:30, ShapedAxis((5, 1), NamedTuple())))), layer_4 = ViewAxis(76:87, Axis(weight = ViewAxis(1:10, ShapedAxis((2, 5), NamedTuple())), bias = ViewAxis(11:12, ShapedAxis((2, 1), NamedTuple())))))))}}}) is ambiguous. Candidates:
setup(rule::AbstractRule, model) in Optimisers at ...
setup(opt, ps::ComponentArray) in Lux at ...
Possible fix, define
setup(::AbstractRule, ::ComponentArray)

@ChrisRackauckas
Copy link
Owner

@avik-pal do you know what's up with that one?

@avik-pal
Copy link

LuxDL/Lux.jl#176 should patch it. FluxML/Optimisers.jl#106 started specializing the dispatch on AbstractRule, which caused the breakage.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants