1
1
mirror of https://github.com/leon-ai/leon.git synced 2024-11-28 04:04:58 +03:00

refactor(python tcp server): ASR CUDA log notification on bootup

This commit is contained in:
louistiti 2024-06-22 21:03:27 +08:00
parent aa63a6dabc
commit 76b197baeb

View File

@ -22,11 +22,9 @@ class ASR:
self.log('Loading model...')
if device == 'auto':
if torch.cuda.is_available():
device = 'cuda'
else:
self.log('GPU not available. CUDA is not installed?')
self.log('Using CUDA (Compute Unified Device Architecture)')
if 'cuda' in device:
assert torch.cuda.is_available()