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

unittest: make test_cross_entropy_loss_2d_out_of_bounds_class_index compatible for XPU #665

Merged
merged 1 commit into from
Jul 31, 2024

Conversation

hjhee
Copy link
Contributor

@hjhee hjhee commented Jul 31, 2024

This fixes issues from #653

The case is verifying an expected assertion log raised in kernel. We have different log in XPU backend, different keyword (we have no 'CUDA'), different index (we are using work item).
Original test case uses CUDA specific calls, and expected assert message returned from CUDA. The test cases are now rewritten in test_nn_xpu.py to adapt to XPU specific counterparts.

  • "test_cross_entropy_loss_2d_out_of_bounds_class_index_xpu_float16",
  • "test_cross_entropy_loss_2d_out_of_bounds_class_index_xpu_float32",

@fengyuan14 fengyuan14 changed the title adapt test_cross_entropy_loss_2d_out_of_bounds_class_index to xpu unittest: make test_cross_entropy_loss_2d_out_of_bounds_class_index compatible for XPU Jul 31, 2024
@fengyuan14 fengyuan14 added this pull request to the merge queue Jul 31, 2024
Merged via the queue into main with commit 894843c Jul 31, 2024
2 checks passed
@fengyuan14 fengyuan14 deleted the hjhee/ut_cross_entropy_assert branch July 31, 2024 10:34
@daisyden daisyden mentioned this pull request Aug 2, 2024
5 tasks
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