Skip to content

Commit 3e387fb

Browse files
committed
remove staticmethod from reference todtype
1 parent c227aa0 commit 3e387fb

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

test/test_transforms_v2.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2675,8 +2675,7 @@ def test_transform(self, make_input, input_dtype, output_dtype, device, scale, a
26752675
output_dtype = {type(input): output_dtype}
26762676
check_transform(transforms.ToDtype(dtype=output_dtype, scale=scale), input, check_sample_input=not as_dict)
26772677

2678-
@staticmethod
2679-
def reference_convert_dtype_image_tensor(image, dtype=torch.float, scale=False):
2678+
def reference_convert_dtype_image_tensor(self, image, dtype=torch.float, scale=False):
26802679
input_dtype = image.dtype
26812680
output_dtype = dtype
26822681

0 commit comments

Comments
 (0)