pub enum PrecisionPolicy {
Fp32,
Fp16,
Int8 {
calibration_table: PathBuf,
},
}Expand description
TensorRT precision policy — controls EP optimization flags.
Variants§
Fp32
FP32 only — maximum accuracy, baseline performance.
Fp16
FP16 mixed precision — 2× throughput on Tensor Cores.
Int8
INT8 quantized with calibration table — 4× throughput. Requires a pre-generated calibration table path.
Trait Implementations§
Source§impl Clone for PrecisionPolicy
impl Clone for PrecisionPolicy
Source§fn clone(&self) -> PrecisionPolicy
fn clone(&self) -> PrecisionPolicy
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 PrecisionPolicy
impl Debug for PrecisionPolicy
Source§impl Default for PrecisionPolicy
impl Default for PrecisionPolicy
Source§fn default() -> PrecisionPolicy
fn default() -> PrecisionPolicy
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for PrecisionPolicy
impl RefUnwindSafe for PrecisionPolicy
impl Send for PrecisionPolicy
impl Sync for PrecisionPolicy
impl Unpin for PrecisionPolicy
impl UnsafeUnpin for PrecisionPolicy
impl UnwindSafe for PrecisionPolicy
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