mirror of
https://github.com/pstrueb/piper.git
synced 2026-04-17 22:05: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) {
|
if (useCuda) {
|
||||||
// Use CUDA provider
|
// Use CUDA provider
|
||||||
OrtCUDAProviderOptions cuda_options{};
|
OrtCUDAProviderOptions cuda_options{};
|
||||||
|
cuda_options.cudnn_conv_algo_search = OrtCudnnConvAlgoSearchHeuristic;
|
||||||
session.options.AppendExecutionProvider_CUDA(cuda_options);
|
session.options.AppendExecutionProvider_CUDA(cuda_options);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user