pub struct OnnxGraph {
pub nodes: Vec<OnnxNode>,
pub initializer_protos: Vec<OnnxTensor>,
pub input_names: Vec<String>,
pub output_names: Vec<String>,
pub name: String,
}Expand description
A fully parsed ONNX graph: nodes + initializers + I/O metadata.
Fields§
§nodes: Vec<OnnxNode>Computation nodes in topological order.
initializer_protos: Vec<OnnxTensor>Initializer tensors (weights / constants).
input_names: Vec<String>Graph input names (including initializer names).
output_names: Vec<String>Graph output names.
name: StringGraph name.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for OnnxGraph
impl RefUnwindSafe for OnnxGraph
impl Send for OnnxGraph
impl Sync for OnnxGraph
impl Unpin for OnnxGraph
impl UnwindSafe for OnnxGraph
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