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

Dagger's syntax when calling functions with kwards does not match Julia syntax #421

Closed
pszufe opened this issue Aug 14, 2023 · 0 comments · Fixed by #533 · May be fixed by #423
Closed

Dagger's syntax when calling functions with kwards does not match Julia syntax #421

pszufe opened this issue Aug 14, 2023 · 0 comments · Fixed by #533 · May be fixed by #423

Comments

@pszufe
Copy link
Collaborator

pszufe commented Aug 14, 2023

Consider the following Julia function:

f(a; b) = a + b
@assert f(1, b=2) === f(1; b=2)   # can be called with either `,` or `;`

Now let us try to call it with Dagger:

julia> fetch( Dagger.@spawn f(1; b=2) )
3

julia> fetch( Dagger.@spawn f(1, b=2) )
ERROR: MethodError: no method matching tuple(::Int64; b::Int64)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants