Skip to content

Commit

Permalink
remove cuda error
Browse files Browse the repository at this point in the history
  • Loading branch information
akshayballal95 committed Dec 7, 2024
1 parent 8694bcb commit edaa279
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion rust/src/embeddings/local/bert.rs
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ impl OrtBertEmbedder {
let threads = std::thread::available_parallelism().unwrap().get();
let model = Session::builder()?
.with_execution_providers([
CUDAExecutionProvider::default().build().error_on_failure(),
CUDAExecutionProvider::default().build(),
CoreMLExecutionProvider::default().build(),
])?
.with_optimization_level(GraphOptimizationLevel::Level3)?
Expand Down
2 changes: 1 addition & 1 deletion rust/src/embeddings/local/jina.rs
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ impl OrtJinaEmbedder {
let threads = std::thread::available_parallelism().unwrap().get();
let session = Session::builder()?
.with_execution_providers([
CUDAExecutionProvider::default().build().error_on_failure(),
CUDAExecutionProvider::default().build(),
CoreMLExecutionProvider::default().build(),
])?
.with_optimization_level(GraphOptimizationLevel::Level3)?
Expand Down

0 comments on commit edaa279

Please sign in to comment.