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

(fix) Change default == value to is #139

Merged
merged 1 commit into from
Mar 28, 2024
Merged

(fix) Change default == value to is #139

merged 1 commit into from
Mar 28, 2024

Conversation

maxmynter
Copy link
Collaborator

as the default can be an array. If that is the case the previous implementation fails in the if clause as the truth value of an array is ambiguous.

Previously the following would fail:

@nnbench.parametrize(({"a": np.zeros((10**5,))},))
def matsquare(a):
    return a @ a

as the default can be an array. If that is the case the previous
implementation fails in the if clause as the truth value of an
array is ambiguous.
@maxmynter maxmynter merged commit ca30c5f into main Mar 28, 2024
5 checks passed
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 this pull request may close these issues.

2 participants