pub struct LayoutOptimizationResult {
pub layouts: HashMap<usize, TensorLayout>,
pub transformations_needed: usize,
pub estimated_improvement: f64,
pub estimated_speedup: f64,
}Expand description
Result of layout optimization.
Fields§
§layouts: HashMap<usize, TensorLayout>Optimized layouts for each tensor
transformations_needed: usizeNumber of layout transformations required
estimated_improvement: f64Estimated memory access improvement (0.0 to 1.0)
estimated_speedup: f64Estimated speedup from better layouts
Implementations§
Source§impl LayoutOptimizationResult
impl LayoutOptimizationResult
Sourcepub fn get_layout(&self, tensor_idx: usize) -> Option<&TensorLayout>
pub fn get_layout(&self, tensor_idx: usize) -> Option<&TensorLayout>
Get the layout for a tensor.
Trait Implementations§
Source§impl Clone for LayoutOptimizationResult
impl Clone for LayoutOptimizationResult
Source§fn clone(&self) -> LayoutOptimizationResult
fn clone(&self) -> LayoutOptimizationResult
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 LayoutOptimizationResult
impl Debug for LayoutOptimizationResult
Source§impl<'de> Deserialize<'de> for LayoutOptimizationResult
impl<'de> Deserialize<'de> for LayoutOptimizationResult
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for LayoutOptimizationResult
impl PartialEq for LayoutOptimizationResult
Source§impl Serialize for LayoutOptimizationResult
impl Serialize for LayoutOptimizationResult
impl StructuralPartialEq for LayoutOptimizationResult
Auto Trait Implementations§
impl Freeze for LayoutOptimizationResult
impl RefUnwindSafe for LayoutOptimizationResult
impl Send for LayoutOptimizationResult
impl Sync for LayoutOptimizationResult
impl Unpin for LayoutOptimizationResult
impl UnwindSafe for LayoutOptimizationResult
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