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 kwarg, this should error or fail #252

Open
vpuri3 opened this issue Aug 11, 2023 · 1 comment
Open

Incorrect kwarg, this should error or fail #252

vpuri3 opened this issue Aug 11, 2023 · 1 comment

Comments

@vpuri3
Copy link
Contributor

vpuri3 commented Aug 11, 2023

@gaurav-arya does it error when FunctionOp gets a wrong keyword argument?

L = update_coefficients(L, v, p, t; JVP_input = x2)

@gaurav-arya
Copy link
Contributor

No, in the current design it shouldn't, because operators specify what kwargs they want and we filter the rest away. There would be a clear error if an operator doesn't get a keyword argument that it needs though, e.g. due to a misspelling.

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

2 participants