-
Notifications
You must be signed in to change notification settings - Fork 0
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
TST refactor tests #96
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for doing this!
tests/test_t1_forward.py
Outdated
@pytest.mark.parametrize("N_and_dim", Ns_and_dims) | ||
def test_t1_forward_CPU(N_and_dim) -> None: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you split these so it is two arguments N
and dim
for both of these tests?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, and then @pytest.mark.parametrize("N, dims", Ns_and_dims)
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a dramatic improvment!
The CUDA tests seem quite slow (~3x the CPU times), maybe worth looking into another time?
Consolidate tests
They currently run in 7:51 on cpu on my machine
TODO: