@@ -459,7 +459,7 @@ def _compute_output_size(self, *, input_size, size, max_size):
459
459
@pytest .mark .parametrize ("antialias" , [True , False ])
460
460
@pytest .mark .parametrize ("dtype" , [torch .float32 , torch .uint8 ])
461
461
@pytest .mark .parametrize ("device" , cpu_and_cuda ())
462
- def test_kernel_image_tensor (self , size , interpolation , use_max_size , antialias , dtype , device ):
462
+ def test_kernel_image (self , size , interpolation , use_max_size , antialias , dtype , device ):
463
463
if not (max_size_kwarg := self ._make_max_size_kwarg (use_max_size = use_max_size , size = size )):
464
464
return
465
465
@@ -830,7 +830,7 @@ def test_float16_no_rounding(self):
830
830
class TestHorizontalFlip :
831
831
@pytest .mark .parametrize ("dtype" , [torch .float32 , torch .uint8 ])
832
832
@pytest .mark .parametrize ("device" , cpu_and_cuda ())
833
- def test_kernel_image_tensor (self , dtype , device ):
833
+ def test_kernel_image (self , dtype , device ):
834
834
check_kernel (F .horizontal_flip_image , make_image (dtype = dtype , device = device ))
835
835
836
836
@pytest .mark .parametrize ("format" , list (tv_tensors .BoundingBoxFormat ))
@@ -980,7 +980,7 @@ def _check_kernel(self, kernel, input, *args, **kwargs):
980
980
)
981
981
@pytest .mark .parametrize ("dtype" , [torch .float32 , torch .uint8 ])
982
982
@pytest .mark .parametrize ("device" , cpu_and_cuda ())
983
- def test_kernel_image_tensor (self , param , value , dtype , device ):
983
+ def test_kernel_image (self , param , value , dtype , device ):
984
984
if param == "fill" :
985
985
value = adapt_fill (value , dtype = dtype )
986
986
self ._check_kernel (
@@ -1280,7 +1280,7 @@ def test_transform_unknown_fill_error(self):
1280
1280
class TestVerticalFlip :
1281
1281
@pytest .mark .parametrize ("dtype" , [torch .float32 , torch .uint8 ])
1282
1282
@pytest .mark .parametrize ("device" , cpu_and_cuda ())
1283
- def test_kernel_image_tensor (self , dtype , device ):
1283
+ def test_kernel_image (self , dtype , device ):
1284
1284
check_kernel (F .vertical_flip_image , make_image (dtype = dtype , device = device ))
1285
1285
1286
1286
@pytest .mark .parametrize ("format" , list (tv_tensors .BoundingBoxFormat ))
@@ -1404,7 +1404,7 @@ class TestRotate:
1404
1404
)
1405
1405
@pytest .mark .parametrize ("dtype" , [torch .float32 , torch .uint8 ])
1406
1406
@pytest .mark .parametrize ("device" , cpu_and_cuda ())
1407
- def test_kernel_image_tensor (self , param , value , dtype , device ):
1407
+ def test_kernel_image (self , param , value , dtype , device ):
1408
1408
kwargs = {param : value }
1409
1409
if param != "angle" :
1410
1410
kwargs ["angle" ] = self ._MINIMAL_AFFINE_KWARGS ["angle" ]
@@ -2382,7 +2382,7 @@ def _make_displacement(self, inpt):
2382
2382
)
2383
2383
@pytest .mark .parametrize ("dtype" , [torch .float32 , torch .uint8 ])
2384
2384
@pytest .mark .parametrize ("device" , cpu_and_cuda ())
2385
- def test_kernel_image_tensor (self , param , value , dtype , device ):
2385
+ def test_kernel_image (self , param , value , dtype , device ):
2386
2386
image = make_image_tensor (dtype = dtype , device = device )
2387
2387
2388
2388
check_kernel (
0 commit comments