尝试将onnxruntime与GPU一起使用。 SessionOptionsAppendExecutionProvider_CUDA 给出错误

问题描述 投票:0回答:0

我正在学习使用 GPU 进行 onnxruntime 推理。我从https://github.com/microsoft/onnxruntime-inference-examples.git获取了代码。 我尝试了 main/c_cxx/fns_candy_style_transfer 案例。按照 https://github.com/microsoft/onnxruntime-inference-examples/tree/main/c_cxx中的说明进行操作。

调用“OrtStatus* onnx_status = g_ort->SessionOptionsAppendExecutionProvider_CUDA(session_options, &o);”时,出现如下错误。

先尝试启用CUDA D: _work \s\onnxruntim

windows gpu onnxruntime
© www.soinside.com 2019 - 2024. All rights reserved.