How do I work with OrtCUDAProviderOptionsV2 struct using c++ api header ? #16627
-
I am on tag 1.15.1. The code below compiles and runs, but since the c++ header doesn't define
|
Beta Was this translation helpful? Give feedback.
Answered by
baijumeswani
Jul 7, 2023
Replies: 1 comment 3 replies
-
This can be done using the function For example, you could do: const std::vector<std::string> keys{"device_id"};
const std::vector<std::string> values{"1"};
api.UpdateCUDAProviderOptions(cuda_options, keys.data(), values.data(), 1U); Refer to the API documentation here Note that the code snippet I provided is not tested and may need adjustments. |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
baijumeswani
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This can be done using the function
UpdateCUDAProviderOptions
.For example, you could do:
Refer to the API documentation here
Note that the code snippet I provided is not tested and may need adjustments.