Add test for sigmoid_focal_loss (#5783)
* Add test for sigmoid_focal_loss * Update test/test_ops.py Improve code by using torch.testing.make_tensor Co-authored-by:Philip Meier <github.pmeier@posteo.de> * Update test/test_ops.py Remove unnecessary assert Co-authored-by:
Philip Meier <github.pmeier@posteo.de> * Update test/test_ops.py Refactor code for generating inputs and targets Co-authored-by:
Philip Meier <github.pmeier@posteo.de> * Improve focal_loss test code suggested on comment by Philip * Use fuser2 to prevent fuser bug * Combine function to generate input, dont set the fuser when device is cpu * Add github issue for the fuser problem Co-authored-by:
Philip Meier <github.pmeier@posteo.de>
Showing
Please register or sign in to comment