pub struct HardwareAwareNAS {
pub target_latency: f32,
pub target_hardware: String,
pub latency_table: HashMap<Operation, f32>,
}Expand description
Hardware-aware NAS
Fields§
§target_latency: f32Target hardware latency (ms)
target_hardware: StringTarget hardware (e.g., “mobile”, “gpu”, “tpu”)
latency_table: HashMap<Operation, f32>Latency lookup table for operations
Implementations§
Source§impl HardwareAwareNAS
impl HardwareAwareNAS
Sourcepub fn estimate_latency(&self, cell: &Cell) -> f32
pub fn estimate_latency(&self, cell: &Cell) -> f32
Estimate latency for a cell
Sourcepub fn meets_constraint(&self, cell: &Cell) -> bool
pub fn meets_constraint(&self, cell: &Cell) -> bool
Check if architecture meets latency constraint
Auto Trait Implementations§
impl Freeze for HardwareAwareNAS
impl RefUnwindSafe for HardwareAwareNAS
impl Send for HardwareAwareNAS
impl Sync for HardwareAwareNAS
impl Unpin for HardwareAwareNAS
impl UnwindSafe for HardwareAwareNAS
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> 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