pub struct OnnxNode {
pub inputs: Vec<String>,
pub outputs: Vec<String>,
pub op_type: String,
pub name: String,
pub attributes: HashMap<String, OnnxAttribute>,
}Expand description
An ONNX graph node (operation).
Fields§
§inputs: Vec<String>Input tensor names.
outputs: Vec<String>Output tensor names.
op_type: StringOperation type (e.g., “MatMul”, “Relu”, “Add”).
name: StringNode name (for debugging).
attributes: HashMap<String, OnnxAttribute>String attributes (key → value).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for OnnxNode
impl RefUnwindSafe for OnnxNode
impl Send for OnnxNode
impl Sync for OnnxNode
impl Unpin for OnnxNode
impl UnwindSafe for OnnxNode
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