8000 Fix remaining linter issues · pytorch/pytorch@e1daa64 · GitHub
[go: up one dir, main page]

Skip to content

Commit e1daa64

Browse files
committed
Fix remaining linter issues
1 parent 52eaf7c commit e1daa64

File tree

1 file changed

+90
-70
lines changed
  • torch/testing/_internal/opinfo/definitions

1 file changed

+90
-70
lines changed

torch/testing/_internal/opinfo/definitions/fft.py

Lines changed: 90 additions & 70 deletions
Original file line numberDiff line numberDiff line change
@@ -141,12 +141,12 @@ def mt(shape, **kwargs):
141141
skips=(
142142
DecorateInfo(
143143
unittest.expectedFailure,
144-
'TestCommon',
145-
'test_non_standard_bool_values',
144+
"TestCommon",
145+
"test_non_standard_bool_values",
146146
dtypes=[torch.bool],
147-
device_type='mps'
147+
device_type="mps",
148148
),
149-
)
149+
),
150150
),
151151
SpectralFuncInfo(
152152
"fft.fft2",
@@ -180,10 +180,10 @@ def mt(shape, **kwargs):
180180
),
181181
DecorateInfo(
182182
unittest.expectedFailure,
183-
'TestCommon',
184-
'test_non_standard_bool_values',
183+
"TestCommon",
184+
"test_non_standard_bool_values",
185185
dtypes=[torch.bool],
186-
device_type='mps'
186+
device_type="mps",
187187
),
188188
),
189189
),
@@ -211,12 +211,12 @@ def mt(shape, **kwargs):
211211
skips=(
212212
DecorateInfo(
213213
unittest.expectedFailure,
214-
'TestCommon',
215-
'test_non_standard_bool_values',
214+
"TestCommon",
215+
"test_non_standard_bool_values",
216216
dtypes=[torch.bool],
217-
device_type='mps'
217+
device_type="mps",
218218
),
219-
)
219+
),
220220
),
221221
SpectralFuncInfo(
222222
"fft.hfft",
@@ -250,16 +250,16 @@ def mt(shape, **kwargs):
250250
# FIXME[MPS]: test_out_warning_fft_hfft_mps crashes with `Invalid KernelDAG`
251251
DecorateInfo(
252252
unittest.skip("Skipped on MPS due to hard crash"),
253-
'TestCommon',
254-
'test_out_warning',
255-
device_type='mps'
253+
"TestCommon",
254+
"test_out_warning",
255+
device_type="mps",
256256
),
257257
DecorateInfo(
258258
unittest.expectedFailure,
259-
'TestCommon',
260-
'test_non_standard_bool_values',
259+
"TestCommon",
260+
"test_non_standard_bool_values",
261261
dtypes=[torch.bool],
262-
device_type='mps'
262+
device_type="mps",
263263
),
264264
),
265265
),
@@ -307,10 +307,10 @@ def mt(shape, **kwargs):
307307
),
308308
DecorateInfo(
309309
unittest.expectedFailure,
310-
'TestCommon',
311-
'test_non_standard_bool_values',
310+
"TestCommon",
311+
"test_non_standard_bool_values",
312312
dtypes=[torch.bool],
313-
device_type='mps'
313+
device_type="mps",
314314
),
315315
),
316316
),
@@ -351,10 +351,10 @@ def mt(shape, **kwargs):
351351
),
352352
DecorateInfo(
353353
unittest.expectedFailure,
354-
'TestCommon',
355-
'test_non_standard_bool_values',
354+
"TestCommon",
355+
"test_non_standard_bool_values",
356356
dtypes=[torch.bool],
357-
device_type='mps'
357+
device_type="mps",
358358
),
359359
),
360360
),
@@ -379,10 +379,10 @@ def mt(shape, **kwargs):
379379
skips=(
380380
DecorateInfo(
381381
unittest.expectedFailure,
382-
'TestCommon',
383-
'test_non_standard_bool_values',
382+
"TestCommon",
383+
"test_non_standard_bool_values",
384384
dtypes=[torch.bool],
385-
device_type='mps'
385+
device_type="mps",
386386
),
387387
),
388388
check_batched_gradgrad=False,
@@ -412,10 +412,10 @@ def mt(shape, **kwargs):
412412
skips=(
413413
DecorateInfo(
414414
unittest.expectedFailure,
415-
'TestCommon',
416-
'test_non_standard_bool_values',
415+
"TestCommon",
416+
"test_non_standard_bool_values",
417417
dtypes=[torch.bool],
418-
device_type='mps'
418+
device_type="mps",
419419
),
420420
),
421421
),
@@ -444,12 +444,12 @@ def mt(shape, **kwargs):
444444
skips=(
445445
DecorateInfo(
446446
unittest.expectedFailure,
447-
'TestCommon',
448-
'test_non_standard_bool_values',
447+
"TestCommon",
448+
"test_non_standard_bool_values",
449449
dtypes=[torch.bool],
450-
device_type='mps'
450+
device_type="mps",
451451
),
452-
)
452+
),
453453
),
454454
SpectralFuncInfo(
455455
"fft.ifft",
@@ -474,12 +474,12 @@ def mt(shape, **kwargs):
474474
skips=(
475475
DecorateInfo(
476476
unittest.expectedFailure,
477-
'TestCommon',
478-
'test_non_standard_bool_values',
477+
"TestCommon",
478+
"test_non_standard_bool_values",
479479
dtypes=[torch.bool],
480-
device_type='mps'
480+
device_type="mps",
481481
),
482-
)
482+
),
483483
),
484484
SpectralFuncInfo(
485485
"fft.ifft2",
@@ -511,12 +511,12 @@ def mt(shape, **kwargs):
511511
skips=(
512512
DecorateInfo(
513513
unittest.expectedFailure,
514-
'TestCommon',
515-
'test_non_standard_bool_values',
514+
"TestCommon",
515+
"test_non_standard_bool_values",
516516
dtypes=[torch.bool],
517-
device_type='mps'
517+
device_type="mps",
518518
),
519-
)
519+
),
520520
),
521521
SpectralFuncInfo(
522522
"fft.ifftn",
@@ -548,12 +548,12 @@ def mt(shape, **kwargs):
548548
skips=(
549549
DecorateInfo(
550550
unittest.expectedFailure,
551-
'TestCommon',
552-
'test_non_standard_bool_values',
551+
"TestCommon",
552+
"test_non_standard_bool_values",
553553
dtypes=[torch.bool],
554-
device_type='mps'
554+
device_type="mps",
555555
),
556-
)
556+
),
557557
),
558558
SpectralFuncInfo(
559559
"fft.ihfft",
@@ -573,8 +573,13 @@ def mt(shape, **kwargs):
573573
torch.bool, *(() if (not SM53OrLater) else (torch.half,))
574574
),
575575
skips=(
576-
DecorateInfo(unittest.expectedFailure, 'TestCommon', 'test_non_standard_bool_values',
577-
dtypes=[torch.bool], device_type='mps'),
576+
DecorateInfo(
577+
unittest.expectedFailure,
578+
"TestCommon",
579+
"test_non_standard_bool_values",
580+
dtypes=[torch.bool],
581+
device_type="mps",
582+
),
578583
),
579584
check_batched_grad=False,
580585
),
@@ -610,9 +615,14 @@ def mt(shape, **kwargs):
610615
DecorateInfo(unittest.expectedFailure, "TestCommon", "test_out_warnings"),
611616
),
612617
skips=(
613-
DecorateInfo(unittest.expectedFailure, 'TestCommon', 'test_non_standard_bool_values',
614-
dtypes=[torch.bool], device_type='mps'),
615-
)
618+
DecorateInfo(
619+
unittest.expectedFailure,
620+
"TestCommon",
621+
"test_non_standard_bool_values",
622+
dtypes=[torch.bool],
623+
device_type="mps",
624+
),
625+
),
616626
),
617627
SpectralFuncInfo(
618628
"fft.ihfftn",
@@ -645,9 +655,14 @@ def mt(shape, **kwargs):
645655
),
646656
],
647657
skips=(
648-
DecorateInfo(unittest.expectedFailure, 'TestCommon', 'test_non_standard_bool_values',
649-
dtypes=[torch.bool], device_type='mps'),
650-
)
658+
DecorateInfo(
659+
unittest.expectedFailure,
660+
"TestCommon",
661+
"test_non_standard_bool_values",
662+
dtypes=[torch.bool],
663+
device_type="mps",
664+
),
665+
),
651666
),
652667
SpectralFuncInfo(
653668
"fft.irfft",
@@ -674,18 +689,18 @@ def mt(shape, **kwargs):
674689
# FIXME[MPS]: test_out_warning_fft_irfft_mps crashes with `Invalid KernelDAG`
675690
DecorateInfo(
676691
unittest.skip("Skipped on MPS due to hard crash"),
677-
'TestCommon',
678-
'test_out_warning',
679-
device_type='mps',
692+
"TestCommon",
693+
"test_out_warning",
694+
device_type="mps",
680695
),
681696
DecorateInfo(
682697
unittest.expectedFailure,
683-
'TestCommon',
684-
'test_non_standard_bool_values',
698+
"TestCommon",
699+
"test_non_standard_bool_values",
685700
dtypes=[torch.bool],
686-
device_type='mps'
701+
device_type="mps",
687702
),
688-
)
703+
),
689704
),
690705
SpectralFuncInfo(
691706
"fft.irfft2",
@@ -719,18 +734,18 @@ def mt(shape, **kwargs):
719734
# FIXME[MPS]: test_out_warning_fft_irfft2_mps crashes with `Invalid KernelDAG`
720735
DecorateInfo(
721736
unittest.skip("Skipped on MPS due to hard crash"),
722-
'TestCommon',
723-
'test_out_warning',
724-
device_type='mps',
737+
"TestCommon",
738+
"test_out_warning",
739+
device_type="mps",
725740
),
726741
DecorateInfo(
727742
unittest.expectedFailure,
728-
'TestCommon',
729-
'test_non_standard_bool_values',
743+
"TestCommon",
744+
"test_non_standard_bool_values",
730745
dtypes=[torch.bool],
731-
device_type='mps'
746+
device_type="mps",
732747
),
733-
)
748+
),
734749
),
735750
SpectralFuncInfo(
736751
"fft.irfftn",
@@ -761,9 +776,14 @@ def mt(shape, **kwargs):
761776
)
762777
],
763778
skips=(
764-
DecorateInfo(unittest.expectedFailure, 'TestCommon', 'test_non_standard_bool_values',
765-
dtypes=[torch.bool], device_type='mps'),
766-
)
779+
DecorateInfo(
780+
unittest.expectedFailure,
781+
"TestCommon",
782+
"test_non_standard_bool_values",
783+
dtypes=[torch.bool],
784+
device_type="mps",
785+
),
786+
),
767787
),
768788
OpInfo(
769789
"fft.fftshift",

0 commit comments

Comments
 (0)
0