Commit cd08c87 1 parent 03103f1 commit cd08c87 Copy full SHA for cd08c87
File tree 1 file changed +2
-0
lines changed
1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -150,6 +150,7 @@ def test_inverse_output_shape(self):
150
150
# Check if the output tensor has the expected shape
151
151
self .assertEqual (output_tensor .shape , expected_shape )
152
152
153
+ @unittest .skipIf (not torch .backends .mps .is_available (), "MPS not available" )
153
154
def test_stft_with_mps_device (self ):
154
155
mps_device = torch .device ("mps" )
155
156
self .stft .device = mps_device
@@ -158,6 +159,7 @@ def test_stft_with_mps_device(self):
158
159
self .assertIsNotNone (stft_result )
159
160
self .assertIsInstance (stft_result , torch .Tensor )
160
161
162
+ @unittest .skipIf (not torch .backends .mps .is_available (), "MPS not available" )
161
163
def test_inverse_with_mps_device (self ):
162
164
mps_device = torch .device ("mps" )
163
165
self .stft .device = mps_device
You can’t perform that action at this time.
0 commit comments