@@ -1858,7 +1858,6 @@ def test_embedding_max_norm(self):
1858
1858
1859
1859
@unittest .skipIf (not TEST_CUDA , "CUDA unavailable" )
1860
1860
@repeat_test_for_types (ALL_TENSORTYPES )
1861
- @skipIfRocm
1862
1861
def test_embedding_max_norm_cuda (self , dtype = torch .float ):
1863
1862
embedding = nn .Embedding (22 , 5 , max_norm = 1.0 ).to ("cuda" , dtype = dtype )
1864
1863
# nn.Embedding only takes LongTensor as input
@@ -4561,7 +4560,6 @@ def test_inplace_thnn(self):
4561
4560
4562
4561
@unittest .skipIf (not TEST_CUDA , 'CUDA not available' )
4563
4562
@repeat_test_for_types (ALL_TENSORTYPES )
4564
- @skipIfRocm
4565
4563
def test_noncontig_conv_grad_cuda (self , dtype = torch .float ):
4566
4564
# FIXME: remove after adding non-contiguous grad tests for all modules
4567
4565
module = nn .Conv2d (3 , 5 , kernel_size = 3 , padding = 1 ).to ("cuda" , dtype )
@@ -6013,7 +6011,6 @@ def test_conv_double_backward_stride(self):
6013
6011
no_weight )
6014
6012
6015
6013
@unittest .skipIf (not TEST_CUDA , "CUDA unavailable" )
6016
- @skipIfRocm
6017
6014
def test_cudnn_noncontiguous_weight (self ):
6018
6015
# Noncontiguous weights must be contiguous() before being
6019
6016
# passed to cuDNN
@@ -7499,7 +7496,6 @@ def multimarginloss_weights_no_reduce_test():
7499
7496
cudnn = True ,
7500
7497
check_eval = True ,
7501
7498
skip_double = TEST_WITH_ROCM ,
7502
- test_cuda = (not TEST_WITH_ROCM ),
7503
7499
),
7504
7500
dict (
7505
7501
module_name = 'BatchNorm2d' ,
@@ -7509,7 +7505,6 @@ def multimarginloss_weights_no_reduce_test():
7509
7505
check_eval = True ,
7510
7506
desc = '2d_simple_average' ,
7511
7507
skip_double = TEST_WITH_ROCM ,
7512
- test_cuda = (not TEST_WITH_ROCM ),
7513
7508
),
7514
7509
dict (
7515
7510
module_name = 'BatchNorm2d' ,
@@ -7519,7 +7514,6 @@ def multimarginloss_weights_no_reduce_test():
7519
7514
check_eval = True ,
7520
7515
desc = 'momentum' ,
7521
7516
skip_double = TEST_WITH_ROCM ,
7522
- test_cuda = (not TEST_WITH_ROCM ),
7523
7517
),
7524
7518
dict (
7525
7519
module_name = 'BatchNorm2d' ,
@@ -7538,15 +7532,13 @@ def multimarginloss_weights_no_reduce_test():
7538
7532
check_eval = True ,
7539
7533
desc = 'not_tracking_stats' ,
7540
7534
skip_double = TEST_WITH_ROCM ,
7541
- test_cuda = (not TEST_WITH_ROCM ),
7542
7535
),
7543
7536
dict (
7544
7537
module_name = 'BatchNorm3d' ,
7545
7538
constructor_args = (3 ,),
7546
7539
input_size = (2 , 3 , 4 , 4 , 4 ),
7547
7540
cudnn = True ,
7548
7541
check_eval = True ,
7549
- decorator = skipIfRocm ,
7550
7542
),
7551
7543
dict (
7552
7544
module_name = 'BatchNorm3d' ,
@@ -7555,7 +7547,6 @@ def multimarginloss_weights_no_reduce_test():
7555
7547
cudnn = True ,
7556
7548
check_eval = True ,
7557
7549
desc = '3d_simple_average' ,
7558
- decorator = skipIfRocm ,
7559
7550
),
7560
7551
dict (
7561
7552
module_name = 'BatchNorm3d' ,
@@ -7564,7 +7555,6 @@ def multimarginloss_weights_no_reduce_test():
7564
7555
cudnn = True ,
7565
7556
check_eval = True ,
7566
7557
desc = 'momentum' ,
7567
- decorator = skipIfRocm ,
7568
7558
),
7569
7559
dict (
7570
7560
module_name = 'BatchNorm3d' ,
@@ -7581,7 +7571,6 @@ def multimarginloss_weights_no_reduce_test():
7581
7571
cudnn = True ,
7582
7572
check_eval = True ,
7583
7573
desc = 'not_tracking_stats' ,
7584
- decorator = skipIfRocm ,
7585
7574
),
7586
7575
dict (
7587
7576
module_name = 'InstanceNorm1d' ,
@@ -7726,7 +7715,6 @@ def multimarginloss_weights_no_reduce_test():
7726
7715
input_size = (2 , 4 , 10 ),
7727
7716
cudnn = True ,
7728
7717
skip_double = TEST_WITH_ROCM ,
7729
- test_cuda = (not TEST_WITH_ROCM ),
7730
7718
),
7731
7719
dict (
7732
7720
module_name = 'Conv1d' ,
@@ -7735,7 +7723,6 @@ def multimarginloss_weights_no_reduce_test():
7735
7723
cudnn = True ,
7736
7724
desc = 'stride' ,
7737
7725
skip_double = TEST_WITH_ROCM ,
7738
- test_cuda = (not TEST_WITH_ROCM ),
7739
7726
),
7740
7727
dict (
7741
7728
module_name = 'Conv1d' ,
@@ -7744,7 +7731,6 @@ def multimarginloss_weights_no_reduce_test():
7744
7731
cudnn = True ,
7745
7732
desc = 'pad1' ,
7746
7733
skip_double = TEST_WITH_ROCM ,
7747
- test_cuda = (not TEST_WITH_ROCM ),
7748
7734
),
7749
7735
dict (
7750
7736
module_name = 'Conv1d' ,
@@ -7753,7 +7739,6 @@ def multimarginloss_weights_no_reduce_test():
7753
7739
cudnn = True ,
7754
7740
desc = 'pad2' ,
7755
7741
skip_double = TEST_WITH_ROCM ,
7756
- test_cuda = (not TEST_WITH_ROCM ),
7757
7742
),
7758
7743
dict (
7759
7744
module_name = 'Conv1d' ,
@@ -7762,7 +7747,6 @@ def multimarginloss_weights_no_reduce_test():
7762
7747
cudnn = True ,
7763
7748
desc = 'pad1size1' ,
7764
7749
skip_double = TEST_WITH_ROCM ,
7765
- test_cuda = (not TEST_WITH_ROCM ),
7766
7750
),
7767
7751
dict (
7768
7752
module_name = 'Conv1d' ,
@@ -7771,52 +7755,45 @@ def multimarginloss_weights_no_reduce_test():
7771
7755
cudnn = True ,
7772
7756
desc = 'pad2size1' ,
7773
7757
skip_double = TEST_WITH_ROCM ,
7774
- test_cuda = (not TEST_WITH_ROCM ),
7775
7758
),
7776
7759
dict (
7777
7760
fullname = 'Conv1d_dilated' ,
7778
7761
constructor = lambda : nn .Conv1d (4 , 5 , kernel_size = 3 , dilation = 2 ),
7779
7762
input_size = (2 , 4 , 10 ),
7780
7763
skip_double = TEST_WITH_ROCM ,
7781
- test_cuda = (not TEST_WITH_ROCM ),
7782
7764
),
7783
7765
dict (
7784
7766
fullname = 'Conv1d_groups' ,
7785
7767
constructor = lambda : nn .Conv1d (4 , 6 , kernel_size = 3 , groups = 2 ),
7786
7768
input_size = (2 , 4 , 6 ),
7787
7769
cudnn = True ,
7788
7770
skip_double = TEST_WITH_ROCM ,
7789
- test_cuda = (not TEST_WITH_ROCM ),
7790
7771
),
7791
7772
dict (
7792
7773
fullname = 'ConvTranspose1d' ,
7793
7774
constructor = lambda : nn .ConvTranspose1d (3 , 4 , kernel_size = 3 , stride = (3 ,), padding = 1 , output_padding = (1 ,)),
7794
7775
cudnn = True ,
7795
7776
input_size = (1 , 3 , 7 ),
7796
- test_cuda = (not TEST_WITH_ROCM ),
7797
7777
),
7798
7778
dict (
7799
7779
module_name = 'ConvTranspose1d' ,
7800
7780
constructor_args = (3 , 4 , 3 , 2 , 1 , 1 , 1 , False ),
7801
7781
input_size = (1 , 3 , 6 ),
7802
7782
cudnn = True ,
7803
7783
desc = 'no_bias' ,
7804
- test_cuda = (not TEST_WITH_ROCM ),
7805
7784
),
7806
7785
dict (
7807
7786
module_name = 'ConvTranspose1d' ,
7808
7787
constructor_args = (3 , 4 , 3 , 2 , 1 , 1 , 1 , True , 2 ),
7809
7788
input_size = (1 , 3 , 6 ),
7810
7789
cudnn = True ,
7811
7790
desc = 'dilated' ,
7812
- test_cuda = (not TEST_WITH_ROCM ),
7813
7791
),
7814
7792
dict (
7815
7793
fullname = 'ConvTranspose1d_groups' ,
7816
7794
constructor = lambda : nn .ConvTranspose1d (4 , 6 , 3 , stride = (3 ,), padding = 1 , output_padding = (1 ,), groups = 2 ),
7817
7795
cudnn = True ,
7818
7796
input_size = (2 , 4 , 7 ),
7819
- test_cuda = (not TEST_WITH_ROCM ),
7820
7797
),
7821
7798
dict (
7822
7799
module_name = 'MaxPool1d' ,
@@ -7834,82 +7811,71 @@ def multimarginloss_weights_no_reduce_test():
7834
7811
constructor_args = (3 , 4 , (3 , 2 )),
7835
7812
input_size = (2 , 3 , 7 , 5 ),
7836
7813
cudnn = True ,
7837
- test_cuda = (not TEST_WITH_ROCM ),
7838
7814
),
7839
7815
dict (
7840
7816
module_name = 'Conv2d' ,
7841
7817
constructor_args = (3 , 4 , (3 , 3 ), (2 , 2 )),
7842
7818
input_size = (2 , 3 , 6 , 6 ),
7843
7819
cudnn = True ,
7844
7820
desc = 'strided' ,
7845
- test_cuda = (not TEST_WITH_ROCM ),
7846
7821
),
7847
7822
dict (
7848
7823
module_name = 'Conv2d' ,
7849
7824
constructor_args = (3 , 4 , (3 , 3 ), (2 , 2 ), (1 , 1 )),
7850
7825
input_size = (2 , 3 , 6 , 6 ),
7851
7826
cudnn = True ,
7852
7827
desc = 'padding' ,
7853
- test_cuda = (not TEST_WITH_ROCM ),
7854
7828
),
7855
7829
dict (
7856
7830
module_name = 'Conv2d' ,
7857
7831
constructor_args = (3 , 2 , (3 , 3 ), (2 , 2 ), (1 , 1 ), (2 , 2 )),
7858
7832
input_size = (2 , 3 , 8 , 8 ),
7859
7833
cudnn = True ,
7860
7834
desc = 'dilated' ,
7861
- decorator = skipIfRocm ,
7862
7835
),
7863
7836
dict (
7864
7837
module_name = 'Conv2d' ,
7865
7838
constructor_args = (3 , 4 , (3 , 2 ), 1 , 0 , 1 , 1 , False ),
7866
7839
input_size = (2 , 3 , 6 , 5 ),
7867
7840
cudnn = True ,
7868
7841
desc = 'no_bias' ,
7869
- decorator = skipIfRocm ,
7870
7842
),
7871
7843
dict (
7872
7844
fullname = 'Conv2d_groups' ,
7873
7845
constructor = lambda : nn .Conv2d (4 , 6 , (3 , 2 ), groups = 2 ),
7874
7846
input_size = (2 , 4 , 6 , 5 ),
7875
7847
cudnn = True ,
7876
- decorator = skipIfRocm ,
7877
7848
),
7878
7849
dict (
7879
7850
fullname = 'Conv2d_groups_thnn' ,
7880
7851
constructor = lambda : nn .Conv2d (4 , 6 , (3 , 2 ), groups = 2 ),
7881
7852
input_size = (2 , 4 , 6 , 5 ),
7882
- decorator = skipIfRocm ,
7883
7853
),
7884
7854
dict (
7885
7855
module_name = 'ConvTranspose2d' ,
7886
7856
constructor_args = (3 , 4 , 3 , (3 , 2 ), 1 , (1 , 1 )),
7887
7857
cudnn = True ,
7888
7858
input_size = (1 , 3 , 7 , 6 ),
7889
- test_cuda = (not TEST_WITH_ROCM ),
7890
7859
),
7891
7860
dict (
7892
7861
module_name = 'ConvTranspose2d' ,
7893
7862
constructor_args = (3 , 4 , 3 , (2 , 3 ), 1 , (1 , 1 ), 1 , False , (2 , 2 )),
7894
7863
input_size = (1 , 3 , 6 , 7 ),
7895
7864
cudnn = True ,
7896
7865
desc = 'dilated' ,
7897
- test_cuda = (not TEST_WITH_ROCM ),
7898
7866
),
7899
7867
dict (
7900
7868
module_name = 'ConvTranspose2d' ,
7901
7869
constructor_args = (3 , 4 , 3 , (2 , 3 ), 1 , (1 , 1 ), 1 , False ),
7902
7870
input_size = (1 , 3 , 6 , 7 ),
7903
7871
cudnn = True ,
7904
7872
desc = 'no_bias' ,
7905
- test_cuda = (not TEST_WITH_ROCM ),
7906
7873
),
7907
7874
dict (
7908
7875
fullname = 'ConvTranspose2d_groups' ,
7909
7876
constructor = lambda : nn .ConvTranspose2d (2 , 4 , (2 , 3 ), groups = 2 ),
7910
7877
input_size = (1 , 2 , 4 , 5 ),
7911
7878
cudnn = True ,
7912
- test_cuda = (not TEST_WITH_ROCM ),
7913
7879
),
7914
7880
dict (
7915
7881
fullname = 'Conv2d_depthwise' ,
@@ -8066,65 +8032,56 @@ def multimarginloss_weights_no_reduce_test():
8066
8032
constructor_args = (3 , 4 , (2 , 3 , 4 )),
8067
8033
input_size = (2 , 3 , 3 , 4 , 5 ),
8068
8034
cudnn = True ,
8069
- test_cuda = (not TEST_WITH_ROCM ),
8070
8035
),
8071
8036
dict (
8072
8037
module_name = 'Conv3d' ,
8073
8038
constructor_args = (3 , 4 , (2 , 3 , 4 ), 1 , 0 , 1 , 1 , False ),
8074
8039
input_size = (2 , 3 , 3 , 4 , 5 ),
8075
8040
cudnn = True ,
8076
8041
desc = 'no_bias' ,
8077
- test_cuda = (not TEST_WITH_ROCM ),
8078
8042
),
8079
8043
dict (
8080
8044
module_name = 'Conv3d' ,
8081
8045
constructor_args = (3 , 4 , 2 , 2 ),
8082
8046
input_size = (2 , 3 , 5 , 5 , 5 ),
8083
8047
cudnn = True ,
8084
8048
desc = 'stride' ,
8085
- test_cuda = (not TEST_WITH_ROCM ),
8086
8049
),
8087
8050
dict (
8088
8051
module_name = 'Conv3d' ,
8089
8052
constructor_args = (3 , 4 , 2 , 2 , 1 ),
8090
8053
input_size = (2 , 3 , 5 , 5 , 5 ),
8091
8054
cudnn = True ,
8092
8055
desc = 'stride_padding' ,
8093
- test_cuda = (not TEST_WITH_ROCM ),
8094
8056
),
8095
8057
dict (
8096
8058
fullname = 'Conv3d_groups' ,
8097
8059
constructor = lambda : nn .Conv3d (4 , 6 , kernel_size = 3 , groups = 2 ),
8098
8060
input_size = (2 , 4 , 4 , 5 , 4 ),
8099
8061
cudnn = True ,
8100
- test_cuda = (not TEST_WITH_ROCM ),
8101
8062
),
8102
8063
dict (
8103
8064
fullname = 'Conv3d_dilated' ,
8104
8065
constructor = lambda : nn .Conv3d (3 , 4 , kernel_size = 2 , dilation = 2 ),
8105
8066
input_size = (2 , 3 , 5 , 5 , 5 ),
8106
- test_cuda = (not TEST_WITH_ROCM ),
8107
8067
),
8108
8068
dict (
8109
8069
fullname = 'Conv3d_dilated_strided' ,
8110
8070
constructor = lambda : nn .Conv3d (3 , 4 , kernel_size = 2 , dilation = 2 , stride = 2 ),
8111
8071
input_size = (2 , 3 , 5 , 5 , 5 ),
8112
- test_cuda = (not TEST_WITH_ROCM ),
8113
8072
),
8114
8073
dict (
8115
8074
module_name = 'ConvTranspose3d' ,
8116
8075
constructor_args = (2 , 3 , (2 , 3 , 2 )),
8117
8076
cudnn = True ,
8118
8077
input_size = (1 , 2 , 4 , 5 , 4 ),
8119
- test_cuda = (not TEST_WITH_ROCM ),
8120
8078
),
8121
8079
dict (
8122
8080
module_name = 'ConvTranspose3d' ,
8123
8081
constructor_args = (2 , 3 , (2 , 3 , 2 ), 1 , 0 , 0 , 1 , True , (2 , 2 , 2 )),
8124
8082
cudnn = True ,
8125
8083
input_size = (1 , 2 , 4 , 5 , 4 ),
8126
8084
desc = 'dilated' ,
8127
- test_cuda = (not TEST_WITH_ROCM ),
8128
8085
),
8129
8086
dict (
8130
8087
module_name = 'MaxPool3d' ,
0 commit comments