mirror of
https://github.com/pstrueb/piper.git
synced 2026-04-16 13:25:30 +00:00
Use heuristic search for CUDA
This commit is contained in:
@@ -268,6 +268,7 @@ void loadModel(std::string modelPath, ModelSession &session, bool useCuda) {
|
||||
if (useCuda) {
|
||||
// Use CUDA provider
|
||||
OrtCUDAProviderOptions cuda_options{};
|
||||
cuda_options.cudnn_conv_algo_search = OrtCudnnConvAlgoSearchHeuristic;
|
||||
session.options.AppendExecutionProvider_CUDA(cuda_options);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user