pub struct ModelPerformance {
pub inference_time: f64,
pub memory_usage: u64,
pub flops: u64,
pub accuracy: AccuracyMetrics,
pub throughput: ThroughputMetrics,
pub resource_utilization: ModelResourceUtilization,
}Expand description
Model performance characteristics
Fields§
§inference_time: f64Average inference time in milliseconds
memory_usage: u64Memory usage in bytes
flops: u64FLOPs (floating point operations) required
accuracy: AccuracyMetricsModel accuracy metrics
throughput: ThroughputMetricsThroughput metrics
resource_utilization: ModelResourceUtilizationResource utilization
Implementations§
Source§impl ModelPerformance
impl ModelPerformance
Sourcepub fn mobile_optimized() -> Self
pub fn mobile_optimized() -> Self
Create performance profile for lightweight mobile models
Sourcepub fn server_optimized() -> Self
pub fn server_optimized() -> Self
Create performance profile for server-side models
Sourcepub fn edge_optimized() -> Self
pub fn edge_optimized() -> Self
Create performance profile for edge devices
Trait Implementations§
Source§impl Clone for ModelPerformance
impl Clone for ModelPerformance
Source§fn clone(&self) -> ModelPerformance
fn clone(&self) -> ModelPerformance
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 ModelPerformance
impl Debug for ModelPerformance
Source§impl Default for ModelPerformance
impl Default for ModelPerformance
Source§impl<'de> Deserialize<'de> for ModelPerformance
impl<'de> Deserialize<'de> for ModelPerformance
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
Auto Trait Implementations§
impl Freeze for ModelPerformance
impl RefUnwindSafe for ModelPerformance
impl Send for ModelPerformance
impl Sync for ModelPerformance
impl Unpin for ModelPerformance
impl UnwindSafe for ModelPerformance
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