pub struct CompilationConfig {
pub optimization_level: OptimizationLevel,
pub enable_shape_inference: bool,
pub enable_memory_estimation: bool,
pub target_device: Option<String>,
pub memory_budget: Option<usize>,
pub enable_caching: bool,
pub enable_parallelism: bool,
}Expand description
Configuration for graph compilation.
Fields§
§optimization_level: OptimizationLevelOptimization level to apply
enable_shape_inference: boolWhether to enable shape inference
enable_memory_estimation: boolWhether to enable memory estimation
target_device: Option<String>Target device for compilation (e.g., “cpu”, “cuda:0”)
memory_budget: Option<usize>Maximum memory budget in bytes (None = unlimited)
enable_caching: boolEnable caching of intermediate results
enable_parallelism: boolEnable parallel execution planning
Trait Implementations§
Source§impl Clone for CompilationConfig
impl Clone for CompilationConfig
Source§fn clone(&self) -> CompilationConfig
fn clone(&self) -> CompilationConfig
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 CompilationConfig
impl Debug for CompilationConfig
Auto Trait Implementations§
impl Freeze for CompilationConfig
impl RefUnwindSafe for CompilationConfig
impl Send for CompilationConfig
impl Sync for CompilationConfig
impl Unpin for CompilationConfig
impl UnwindSafe for CompilationConfig
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