-
Notifications
You must be signed in to change notification settings - Fork 5
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
Unsqueeze pytorch operator test plan #986
base: main
Are you sure you want to change the base?
Conversation
34ac560
to
0fe6a0e
Compare
dims = list(range(-dim - 1, dim + 1)) | ||
|
||
for i in dims: | ||
yield {"dim": i} |
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.
@dgolubovicTT @vbrkicTT Here, we generate all possible dim values, which creates 2598 tests. The test run takes around 20 minutes. Should we skip some 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.
It doesn't sound yet critical however we might introduce some limits for number of tests on PR/nightly
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.
I wouldn't skip some dim for all tests. Maybe sampling subset of tests will provide uniform testing for all shapes and dimensions? We could do that by choosing subset of dims randomly with seed based on input shape (therefore we would get the same subset for the same shape). What do you think?
0fe6a0e
to
0f80fed
Compare
Test plan for pytorch unsqueeze operator.
Local run (no failing rules):
16 failed, 2582 passed in 938.44s (0:15:38)