pub struct ContractionPath {
pub steps: Vec<(usize, usize)>,
pub estimated_flops: f64,
pub estimated_memory: f64,
}Expand description
Contraction path represents the order of contractions.
Fields§
§steps: Vec<(usize, usize)>Sequence of (tensor1_idx, tensor2_idx) pairs to contract
estimated_flops: f64Estimated total FLOPs
estimated_memory: f64Estimated peak memory usage
Trait Implementations§
Source§impl Clone for ContractionPath
impl Clone for ContractionPath
Source§fn clone(&self) -> ContractionPath
fn clone(&self) -> ContractionPath
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 moreAuto Trait Implementations§
impl Freeze for ContractionPath
impl RefUnwindSafe for ContractionPath
impl Send for ContractionPath
impl Sync for ContractionPath
impl Unpin for ContractionPath
impl UnwindSafe for ContractionPath
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