-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
unittest: make test_cross_entropy_loss_2d_out_of_bounds_class_index c…
…ompatible for XPU (#665) 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",
- Loading branch information
Showing
2 changed files
with
39 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters