fix compile

This commit is contained in:
tuna2134
2024-10-18 13:35:23 +00:00
parent c4005808bd
commit 45a671cf52

View File

@@ -1,5 +1,5 @@
use crate::error::Result;
use ndarray::{Array2, Ix3};
use ndarray::{Array2, Ix2};
use ort::Session;
pub fn predict(
@@ -16,7 +16,7 @@ pub fn predict(
let output = outputs["output"]
.try_extract_tensor::<f32>()?
.into_dimensionality::<Ix3>()?
.into_dimensionality::<Ix2>()?
.to_owned();
Ok(output)