mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-07-28 20:11:22 +00:00
parent
2a8cf1507c
commit
d66b856fb5
1 changed files with 3 additions and 1 deletions
|
|
@ -146,6 +146,8 @@ SessionOptionsAppendExecutionProvider_CUDA_V2(session_options, cuda_options);
|
|||
ReleaseCUDAProviderOptions(cuda_options);
|
||||
```
|
||||
|
||||
### C#
|
||||
|
||||
```c#
|
||||
var cudaProviderOptions = new OrtCUDAProviderOptions(); // Dispose this finally
|
||||
|
||||
|
|
@ -160,4 +162,4 @@ providerOptionsDict["cudnn_conv_use_max_workspace"] = "1";
|
|||
cudaProviderOptions.UpdateOptions(providerOptionsDict);
|
||||
|
||||
SessionOptions options = SessionOptions.MakeSessionOptionWithCudaProvider(cudaProviderOptions); // Dispose this finally
|
||||
```
|
||||
```
|
||||
|
|
|
|||
Loading…
Reference in a new issue