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

#13676: Add unit tests for io_bw, tan_bw, and lerp #15002

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

nemanjagrujic
Copy link
Contributor

  • Add unit tests for io_bw, tan_bw, and lerp problems.
  • Deleted some invalid unit tests.

Copy link
Contributor

@rfurko-tt rfurko-tt left a 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(
Copy link
Contributor

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]}"
Copy link
Contributor

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]}"
Copy link
Contributor

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]}"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same as above

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.

5 participants