sync_outputs

Function sync_outputs 

Source
pub async fn sync_outputs(outputs: &mut SessionOutputs<'_>) -> Result<()>
Expand description

Synchronize all outputs in outputs so that their data is available to Rust code.

See the top-level documentation for more information on synchronization.

let mut outputs = session.run_async(ort::inputs![...]).await?;
ort_web::sync_outputs(&mut outputs).await?;

let bounding_boxes = outputs.remove("bounding_boxes").unwrap();
...