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

Incorrect Code Generation for anonymous functions #9

Closed
avik-pal opened this issue Jul 4, 2023 · 1 comment · Fixed by #10
Closed

Incorrect Code Generation for anonymous functions #9

avik-pal opened this issue Jul 4, 2023 · 1 comment · Fixed by #10

Comments

@avik-pal
Copy link

avik-pal commented Jul 4, 2023

(args...) -> copy(l.weight) gets rewritten as

args...->begin
    #= none:59 =#
    copy(l.weight)
end

which causes a syntax error.

Example File where this occurs: https://github.com/LuxDL/Lux.jl/blob/f34e95d17608fd1d8610792b500db091d615361c/ext/LuxFluxTransformExt.jl

@cjdoris
Copy link
Owner

cjdoris commented Jul 27, 2023

Thanks - essentially a dup of #8 but I'll ensure both issues are covered by tests.

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

Successfully merging a pull request may close this issue.

2 participants