added @needs_torch to test_cuda_oom
This commit is contained in:
parent
95038d6129
commit
1a6bfe51b6
1 changed files with 1 additions and 0 deletions
|
|
@ -316,6 +316,7 @@ class TestFormatErrorMessage:
|
|||
|
||||
# --- OOM on CUDA ---
|
||||
|
||||
@needs_torch
|
||||
def test_cuda_oom(self):
|
||||
err = Exception("CUDA out of memory")
|
||||
with patch("utils.hardware.get_device", return_value=DeviceType.CUDA):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue