I was using ort version "1.16.3" and on upgrade to "2.0.0-rc.2 " gave me error of unresolved import in one of my onnx code. The error was showing for the below snippet:
use ort::execution_providers::{CUDAExecutionProviderOptions, TensorRTExecutionProviderOptions};
The below is the exact error at build:
error[E0432]: unresolved imports `ort::execution_providers::CUDAExecutionProviderOptions`, `ort::execution_providers::TensorRTExecutionProviderOptions`
--> src/detection/yolo/ort_backend.rs:6:32
|
6 | use ort::execution_providers::{CUDAExecutionProviderOptions, TensorRTExecutionProviderOptions};
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no `TensorRTExecutionProviderOptions` in `execution_providers`
| |
| no `CUDAExecutionProviderOptions` in `execution_providers`
|
help: a similar name exists in the module
|
6 | use ort::execution_providers::{CUDAExecutionProvider, TensorRTExecutionProviderOptions};
| ~~~~~~~~~~~~~~~~~~~~~
help: a similar name exists in the module
|
6 | use ort::execution_providers::{CUDAExecutionProviderOptions, TensorRTExecutionProvider};
I was using ort version "1.16.3" and on upgrade to "2.0.0-rc.2 " gave me error of unresolved import in one of my onnx code. The error was showing for the below snippet:
use ort::execution_providers::{CUDAExecutionProviderOptions, TensorRTExecutionProviderOptions};
The below is the exact error at build: