Skip to content

Commit

Permalink
add missing yield
Browse files Browse the repository at this point in the history
  • Loading branch information
speediedan committed Oct 5, 2022
1 parent 8441726 commit 6cc8e44
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/lightning_lite/accelerators/cuda.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,8 @@ def _patch_cuda_is_available() -> Generator:
yield
finally:
torch.cuda.is_available = orig_check
else:
yield


@lru_cache(1)
Expand Down

0 comments on commit 6cc8e44

Please sign in to comment.