pub struct OptimizationProfile {
pub name: String,
pub target: DeploymentTarget,
pub compression: CompressionType,
pub max_model_size: Option<usize>,
pub target_latency_ms: Option<f32>,
pub memory_limit_mb: Option<usize>,
pub preserve_accuracy: f32,
}Expand description
Optimization profiles for different deployment scenarios 異なるデプロイメントシナリオ用の最適化プロファイル
Fields§
§name: StringProfile name プロファイル名
target: DeploymentTargetDeployment target デプロイメントターゲット
compression: CompressionTypeCompression type 圧縮タイプ
max_model_size: Option<usize>Maximum model size in bytes モデルの最大サイズ(バイト)
target_latency_ms: Option<f32>Target inference latency in milliseconds 目標推論レイテンシ(ミリ秒)
memory_limit_mb: Option<usize>Memory limit in megabytes メモリ制限(MB)
preserve_accuracy: f32Minimum accuracy to preserve (0.0-1.0) 保持する最小精度(0.0-1.0)
Implementations§
Trait Implementations§
Source§impl Clone for OptimizationProfile
impl Clone for OptimizationProfile
Source§fn clone(&self) -> OptimizationProfile
fn clone(&self) -> OptimizationProfile
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 moreAuto Trait Implementations§
impl Freeze for OptimizationProfile
impl RefUnwindSafe for OptimizationProfile
impl Send for OptimizationProfile
impl Sync for OptimizationProfile
impl Unpin for OptimizationProfile
impl UnwindSafe for OptimizationProfile
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