pub struct OnnxModel {
pub producer_name: String,
pub producer_version: String,
pub graph_name: String,
pub nodes: Vec<OnnxNode>,
pub initializers: Vec<OnnxTensor>,
pub inputs: Vec<(String, Vec<i64>, i32)>,
pub outputs: Vec<(String, Vec<i64>, i32)>,
}Expand description
An ONNX model with graph, metadata, and opset information.
Fields§
§producer_name: StringModel producer name.
producer_version: StringModel producer version.
graph_name: StringGraph name.
nodes: Vec<OnnxNode>Graph nodes (operations).
initializers: Vec<OnnxTensor>Initializer tensors (weights).
inputs: Vec<(String, Vec<i64>, i32)>Graph inputs (names and shapes).
outputs: Vec<(String, Vec<i64>, i32)>Graph outputs (names and shapes).
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for OnnxModel
impl RefUnwindSafe for OnnxModel
impl Send for OnnxModel
impl Sync for OnnxModel
impl Unpin for OnnxModel
impl UnwindSafe for OnnxModel
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