#[repr(i32)]pub enum PreviewFeature {
kALIASED_PLUGIN_IO_10_03 = 0,
kRUNTIME_ACTIVATION_RESIZE_10_10 = 1,
}Expand description
! ! \enum PreviewFeature ! ! \brief Define preview features ! ! Preview Features have been fully tested but are not yet as stable as other features in TensorRT. ! They are provided as opt-in features for at least one release. !
Variants§
kALIASED_PLUGIN_IO_10_03 = 0
! ! Allows plugin I/O to be aliased when using IPluginV3OneBuildV2 !
kRUNTIME_ACTIVATION_RESIZE_10_10 = 1
! ! Allows IExecutionContext::updateDeviceMemorySizeForShapes to resize runner internal activation memory. ! Using this feature can reduce runtime memory requirement when the actual input tensor shapes are smaller than ! the maximum input tensor dimensions. !
Trait Implementations§
Source§impl Clone for PreviewFeature
impl Clone for PreviewFeature
Source§fn clone(&self) -> PreviewFeature
fn clone(&self) -> PreviewFeature
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 PreviewFeature
Source§impl Debug for PreviewFeature
impl Debug for PreviewFeature
impl Eq for PreviewFeature
Source§impl From<PreviewFeature> for PreviewFeature
impl From<PreviewFeature> for PreviewFeature
Source§fn from(value: PreviewFeature) -> Self
fn from(value: PreviewFeature) -> Self
Converts to this type from the input type.
Source§impl Hash for PreviewFeature
impl Hash for PreviewFeature
Source§impl Into<PreviewFeature> for PreviewFeature
impl Into<PreviewFeature> for PreviewFeature
Source§fn into(self) -> PreviewFeature
fn into(self) -> PreviewFeature
Converts this type into the (usually inferred) input type.
Source§impl Ord for PreviewFeature
impl Ord for PreviewFeature
Source§fn cmp(&self, other: &PreviewFeature) -> Ordering
fn cmp(&self, other: &PreviewFeature) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for PreviewFeature
impl PartialEq for PreviewFeature
Source§fn eq(&self, other: &PreviewFeature) -> bool
fn eq(&self, other: &PreviewFeature) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for PreviewFeature
impl PartialOrd for PreviewFeature
impl StructuralPartialEq for PreviewFeature
Auto Trait Implementations§
impl Freeze for PreviewFeature
impl RefUnwindSafe for PreviewFeature
impl Send for PreviewFeature
impl Sync for PreviewFeature
impl Unpin for PreviewFeature
impl UnsafeUnpin for PreviewFeature
impl UnwindSafe for PreviewFeature
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