@@ -1488,17 +1488,17 @@ def test_distance_iou_loss(self, dtype, device):
14881488 def test_empty_distance_iou_inputs (self , dtype , device ):
14891489 assert_empty_loss (ops .distance_box_iou_loss , dtype , device )
14901490
1491-
1491+
14921492class TestLastLevelMaxPool2d :
14931493 def _generate_fpn_feature_maps (self , ** kwargs ) -> Tuple [List [Tensor ], List [str ]]:
14941494 feature_maps = [
14951495 torch .rand (16 , 3 , 240 , 320 ),
14961496 torch .rand (16 , 3 , 120 , 160 ),
14971497 torch .rand (16 , 3 , 60 , 80 ),
1498- torch .rand (16 , 3 , 30 , 40 )
1498+ torch .rand (16 , 3 , 30 , 40 ),
14991499 ]
1500- names = ['0' , '1' , '2' , '3' ]
1501-
1500+ names = ["0" , "1" , "2" , "3" ]
1501+
15021502 return feature_maps , names
15031503
15041504 def test_lastlevel_maxpool2d (self ) -> None :
@@ -1514,7 +1514,7 @@ def test_lastlevel_maxpool2d(self) -> None:
15141514 tol = 1e-3 if feature_maps [- 1 ].dtype is torch .half else 1e-5
15151515 torch .testing .assert_close (expected_pooled_featuremap , results [- 1 ], atol = tol , rtol = tol )
15161516
1517-
1517+
15181518class TestFocalLoss :
15191519 def _generate_diverse_input_target_pair (self , shape = (5 , 2 ), ** kwargs ):
15201520 def logit (p ):
0 commit comments