pub struct CompileConfig {
pub mode: Mode,
pub backend: Backend,
pub fullgraph: bool,
pub dynamic: bool,
pub disable: bool,
pub passes: Vec<OptimizationPass>,
}Expand description
Configuration for model compilation.
Fields§
§mode: ModeCompilation mode
backend: BackendBackend for code generation
fullgraph: boolWhether to require full graph capture
dynamic: boolWhether to enable dynamic shapes
disable: boolDisable compilation (for debugging)
passes: Vec<OptimizationPass>Optimization passes to apply
Implementations§
Source§impl CompileConfig
impl CompileConfig
Sourcepub fn add_pass(self, pass: OptimizationPass) -> Self
pub fn add_pass(self, pass: OptimizationPass) -> Self
Builder: add optimization pass.
Trait Implementations§
Source§impl Clone for CompileConfig
impl Clone for CompileConfig
Source§fn clone(&self) -> CompileConfig
fn clone(&self) -> CompileConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CompileConfig
impl Debug for CompileConfig
Auto Trait Implementations§
impl Freeze for CompileConfig
impl RefUnwindSafe for CompileConfig
impl Send for CompileConfig
impl Sync for CompileConfig
impl Unpin for CompileConfig
impl UnwindSafe for CompileConfig
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