pub struct Operation { /* private fields */ }Expand description
An ONNX operation/node in the computational graph
Implementations§
Source§impl Operation
impl Operation
Sourcepub fn attributes(&self) -> &HashMap<String, AttributeValue>
pub fn attributes(&self) -> &HashMap<String, AttributeValue>
Reference to all attributes
Sourcepub fn attributes_mut(&mut self) -> &mut HashMap<String, AttributeValue>
pub fn attributes_mut(&mut self) -> &mut HashMap<String, AttributeValue>
Mutable reference to all attributes.
Allows removing, draining, or modifying attributes directly.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Operation
impl RefUnwindSafe for Operation
impl Send for Operation
impl Sync for Operation
impl Unpin for Operation
impl UnsafeUnpin for Operation
impl UnwindSafe for Operation
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