Skip to content

Commit

Permalink
Make session mutable.
Browse files Browse the repository at this point in the history
  • Loading branch information
raphaelmenges committed Mar 10, 2025
1 parent 017a680 commit eb4cd90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/wasm-emscripten/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ pub extern "C" fn detect_objects(ptr: *const u8, width: u32, height: u32) {
.commit()
.expect("Cannot initialize ort.");

let session = ort::session::Session::builder()
let mut session = ort::session::Session::builder()
.expect("Cannot create Session builder.")
.with_optimization_level(ort::session::builder::GraphOptimizationLevel::Level3)
.expect("Cannot optimize graph.")
Expand Down

0 comments on commit eb4cd90

Please sign in to comment.