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:
parent
aa63a6dabc
commit
76b197baeb
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user