pub struct PathInfo {
pub path: Vec<ContractionPair>,
pub flops: usize,
pub largest_intermediate: usize,
}Expand description
Information about the chosen contraction path.
Fields§
§path: Vec<ContractionPair>Sequence of pairwise contractions. Each pair refers to indices in the operand list at that step (operands are removed and the intermediate result is appended after each step).
flops: usizeEstimated total number of multiply-add operations (FLOPs).
largest_intermediate: usizeSize of the largest intermediate tensor (in number of elements).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PathInfo
impl RefUnwindSafe for PathInfo
impl Send for PathInfo
impl Sync for PathInfo
impl Unpin for PathInfo
impl UnsafeUnpin for PathInfo
impl UnwindSafe for PathInfo
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