mirror of
https://github.com/modelscope/FunASR
synced 2025-09-15 14:48:36 +08:00
add gpu define for offlne-stream
This commit is contained in:
parent
0285a3ae5b
commit
87a8caf025
@ -36,7 +36,9 @@ OfflineStream::OfflineStream(std::map<std::string, std::string>& model_path, int
|
||||
string seg_dict_path;
|
||||
|
||||
if(use_gpu){
|
||||
#ifdef USE_GPU
|
||||
asr_handle = make_unique<ParaformerTorch>();
|
||||
#endif
|
||||
}else{
|
||||
asr_handle = make_unique<Paraformer>();
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user