-
Notifications
You must be signed in to change notification settings - Fork 74
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
#13676: Add unit tests for io_bw, tan_bw, and lerp #15002
base: main
Are you sure you want to change the base?
Conversation
nemanjagrujic
commented
Nov 13, 2024
- Add unit tests for io_bw, tan_bw, and lerp problems.
- Deleted some invalid unit 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.
Looks good overall
def test_eltwise_i0_bw(input_shape, dtype, dlayout, in_mem_config, out_mem_config, data_seed, device): | ||
random.seed(0) | ||
|
||
[pcc, e2e_perf] = run_test( |
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.
You can write unpacking this way
(passed, pcc_value), e2e_perf = run_test
) | ||
[passed, pcc_value] = pcc | ||
|
||
assert passed, f"pcc={pcc[1]}" |
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.
please use unpacked value pcc_value
) | ||
[passed, pcc_value] = pcc | ||
|
||
assert passed, f"pcc={pcc[1]}" |
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.
use pcc_value
in assert
) | ||
[passed, pcc_value] = pcc | ||
|
||
assert passed, f"pcc={pcc[1]}" |
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.
same as above