#[repr(u32)]pub enum GraphOptimizationLevel {
DisableAll = 0,
Basic = 1,
Extended = 2,
All = 99,
}
Expand description
Optimization level performed by ONNX Runtime of the loaded graph
See the official documentation for more information on the different optimization levels.
Variants§
DisableAll = 0
Disable optimization
Basic = 1
Basic optimization
Extended = 2
Extended optimization
All = 99
Add optimization
Trait Implementations§
Source§impl Debug for GraphOptimizationLevel
impl Debug for GraphOptimizationLevel
Source§impl From<GraphOptimizationLevel> for GraphOptimizationLevel
impl From<GraphOptimizationLevel> for GraphOptimizationLevel
Source§fn from(val: GraphOptimizationLevel) -> Self
fn from(val: GraphOptimizationLevel) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for GraphOptimizationLevel
impl RefUnwindSafe for GraphOptimizationLevel
impl Send for GraphOptimizationLevel
impl Sync for GraphOptimizationLevel
impl Unpin for GraphOptimizationLevel
impl UnwindSafe for GraphOptimizationLevel
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