add gpu define for offlne-stream

This commit is contained in:
雾聪 2024-03-14 14:46:50 +08:00
parent 0285a3ae5b
commit 87a8caf025

View File

@ -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>();
}