pub struct ModelInfo {
pub path: PathBuf,
pub inputs: Vec<TensorSpec>,
pub outputs: Vec<TensorSpec>,
pub producer: Option<String>,
pub opset_version: Option<i64>,
}Expand description
Static metadata describing a loaded ONNX model.
Returned by OnnxModel::info; inspect
Self::inputs / Self::outputs to validate the expected tensor
contract before running inference.
Fields§
§path: PathBufSource path of the model.
inputs: Vec<TensorSpec>Model input tensor specifications.
outputs: Vec<TensorSpec>Model output tensor specifications.
producer: Option<String>Producer name as declared in the ONNX file.
opset_version: Option<i64>Opset version, if reported by the backend.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ModelInfo
impl RefUnwindSafe for ModelInfo
impl Send for ModelInfo
impl Sync for ModelInfo
impl Unpin for ModelInfo
impl UnsafeUnpin for ModelInfo
impl UnwindSafe for ModelInfo
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more