雾聪
2024-03-21 d4aaa84ad16c2c862ffcb5d73bf7852c8ee90d24
runtime/onnxruntime/src/offline-stream.cpp
@@ -38,6 +38,10 @@
        if(use_gpu){
            #ifdef USE_GPU
            asr_handle = make_unique<ParaformerTorch>();
            #else
            LOG(ERROR) <<"GPU is not supported! CPU will be used! If you want to use GPU, please add -DGPU=ON when cmake";
            asr_handle = make_unique<Paraformer>();
            use_gpu = false;
            #endif
        }else{
            asr_handle = make_unique<Paraformer>();