mirror of
https://github.com/leon-ai/leon.git
synced 2024-11-30 19:07:39 +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...')
|
self.log('Loading model...')
|
||||||
|
|
||||||
if device == 'auto':
|
if device == 'auto':
|
||||||
|
|
||||||
if torch.cuda.is_available():
|
if torch.cuda.is_available():
|
||||||
device = 'cuda'
|
device = 'cuda'
|
||||||
else:
|
self.log('Using CUDA (Compute Unified Device Architecture)')
|
||||||
self.log('GPU not available. CUDA is not installed?')
|
|
||||||
|
|
||||||
if 'cuda' in device:
|
if 'cuda' in device:
|
||||||
assert torch.cuda.is_available()
|
assert torch.cuda.is_available()
|
||||||
|
Loading…
Reference in New Issue
Block a user