pub enum ModelPrecision {
Base,
Fp16,
Fp16Fused,
}Expand description
Precision variant of the ONNX model to load.
Matches the subdirectory layout produced by scripts/download_models.sh:
| Variant | Subfolder | Notes |
|---|---|---|
Base | base/ | FP32, no optimisation; CPU baseline |
Fp16 | fp16/ | FP16 weights, no graph fusions |
Fp16Fused | fp16_fused/ | FP16 + level-2 fusions; CUDA / TensorRT best |
Variants§
Implementations§
Trait Implementations§
Source§impl Clone for ModelPrecision
impl Clone for ModelPrecision
Source§fn clone(&self) -> ModelPrecision
fn clone(&self) -> ModelPrecision
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ModelPrecision
Source§impl Debug for ModelPrecision
impl Debug for ModelPrecision
Source§impl Default for ModelPrecision
impl Default for ModelPrecision
Source§fn default() -> ModelPrecision
fn default() -> ModelPrecision
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ModelPrecision
impl RefUnwindSafe for ModelPrecision
impl Send for ModelPrecision
impl Sync for ModelPrecision
impl Unpin for ModelPrecision
impl UnsafeUnpin for ModelPrecision
impl UnwindSafe for ModelPrecision
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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