pykeio / ort

Fast ML inference & training for Rust with ONNX Runtime
https://ort.pyke.io/
Apache License 2.0
786 stars 91 forks source link

Error importing CUDAExecutionProviderOptions and TensorRTExecutionProviderOptions #221

Closed suryan-s closed 2 months ago

suryan-s commented 2 months ago

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};
decahedron1 commented 2 months ago

https://ort.pyke.io/migrating/v2#execution-providers