pub struct CostModelConfig {
pub element_size_bytes: u8,
pub throughput_gflops: Option<f64>,
pub assume_shapes: Vec<(String, Vec<usize>)>,
}Expand description
Configuration for cost estimation.
Fields§
§element_size_bytes: u8Bytes per element: 8 for f64, 4 for f32, 2 for bf16/f16.
throughput_gflops: Option<f64>If Some(t), use t GFLOP/s to compute an estimated wall-clock time.
assume_shapes: Vec<(String, Vec<usize>)>Shape hints for named tensors: (tensor_name, shape).
Trait Implementations§
Source§impl Clone for CostModelConfig
impl Clone for CostModelConfig
Source§fn clone(&self) -> CostModelConfig
fn clone(&self) -> CostModelConfig
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 CostModelConfig
impl Debug for CostModelConfig
Auto Trait Implementations§
impl Freeze for CostModelConfig
impl RefUnwindSafe for CostModelConfig
impl Send for CostModelConfig
impl Sync for CostModelConfig
impl Unpin for CostModelConfig
impl UnsafeUnpin for CostModelConfig
impl UnwindSafe for CostModelConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more