Skip to content

Commit 11511b3

Browse files
run the new tests under test/nn (#3955)
* run the new tests * add torch_pin * run test only for dropout * update skip * make yapf happy * Delete .torch_pin Co-authored-by: JackCaoG <[email protected]>
1 parent 1f53bae commit 11511b3

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

test/pytorch_test_base.py

+4
Original file line numberDiff line numberDiff line change
@@ -268,6 +268,10 @@
268268
'test_upsamplingBicubic2d_correctness_xla', # FIXME! Got dtypes torch.float32 and torch.float64
269269
'test_conv3d_same_padding_backward_xla', # XLA tensors do not have storage,
270270
'test_CTCLoss_no_batch_dim_xla', # Value out of range
271+
},
272+
273+
# test/nn/test_dropout.py
274+
'TestDropoutNNDeviceTypeXLA': {
271275
'test_Dropout2d_xla', # Started to pass
272276
},
273277

test/run_tests.sh

+1
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ function run_op_tests {
9494
run_test python3 "$CDIR/../../test/test_indexing.py" "$@" -v TestIndexingXLA
9595
run_test python3 "$CDIR/../../test/test_indexing.py" "$@" -v NumpyTestsXLA
9696
run_dynamic python3 "$CDIR/../../test/test_nn.py" "$@" -v TestNNDeviceTypeXLA
97+
run_dynamic python3 "$CDIR/../../test/nn/test_dropout.py" "$@" -v TestDropoutNNDeviceTypeXLA
9798
run_dynamic python3 "$CDIR/../../test/test_type_promotion.py" "$@" -v TestTypePromotionXLA
9899
run_dynamic python3 "$CDIR/test_operations.py" "$@" --verbosity=$VERBOSITY
99100
run_opbyop python3 "$CDIR/test_operations.py" "$@" --verbosity=$VERBOSITY

0 commit comments

Comments
 (0)