pub struct ContractionOptConfig {
pub use_dynamic_programming: bool,
pub max_dp_size: usize,
pub flops_memory_tradeoff: f64,
pub enable_greedy_fallback: bool,
}Expand description
Configuration for contraction optimization.
Fields§
§use_dynamic_programming: boolUse dynamic programming for optimal order
max_dp_size: usizeMaximum number of tensors to consider for DP (complexity limit)
flops_memory_tradeoff: f64Optimize for FLOPs vs memory (0.0 = memory, 1.0 = FLOPs)
enable_greedy_fallback: boolEnable greedy fallback for large problems
Trait Implementations§
Source§impl Clone for ContractionOptConfig
impl Clone for ContractionOptConfig
Source§fn clone(&self) -> ContractionOptConfig
fn clone(&self) -> ContractionOptConfig
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 ContractionOptConfig
impl Debug for ContractionOptConfig
Auto Trait Implementations§
impl Freeze for ContractionOptConfig
impl RefUnwindSafe for ContractionOptConfig
impl Send for ContractionOptConfig
impl Sync for ContractionOptConfig
impl Unpin for ContractionOptConfig
impl UnwindSafe for ContractionOptConfig
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