#[repr(i32)]pub enum OptProfileSelector {
kMIN = 0,
kOPT = 1,
kMAX = 2,
}Expand description
! ! \enum OptProfileSelector ! ! \brief When setting or querying optimization profile parameters (such as shape tensor inputs or dynamic dimensions), ! select whether we are interested in the minimum, optimum, or maximum values for these parameters. ! The minimum and maximum specify the permitted range that is supported at runtime, while the optimum value ! is used for the kernel selection. This should be the “typical” value that is expected to occur at runtime. ! ! \see IOptimizationProfile::setDimensions(), IOptimizationProfile::setShapeValuesV2() !
Variants§
kMIN = 0
!< This is used to set or get the minimum permitted value for dynamic dimensions etc.
kOPT = 1
!< This is used to set or get the value that is used in the optimization (kernel selection).
kMAX = 2
!< This is used to set or get the maximum permitted value for dynamic dimensions etc.
Trait Implementations§
Source§impl Clone for OptProfileSelector
impl Clone for OptProfileSelector
Source§fn clone(&self) -> OptProfileSelector
fn clone(&self) -> OptProfileSelector
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for OptProfileSelector
impl Debug for OptProfileSelector
Source§impl From<OptProfileSelector> for OptProfileSelector
impl From<OptProfileSelector> for OptProfileSelector
Source§fn from(value: OptProfileSelector) -> Self
fn from(value: OptProfileSelector) -> Self
Source§impl Hash for OptProfileSelector
impl Hash for OptProfileSelector
Source§impl Into<OptProfileSelector> for OptProfileSelector
impl Into<OptProfileSelector> for OptProfileSelector
Source§fn into(self) -> OptProfileSelector
fn into(self) -> OptProfileSelector
Source§impl Ord for OptProfileSelector
impl Ord for OptProfileSelector
Source§fn cmp(&self, other: &OptProfileSelector) -> Ordering
fn cmp(&self, other: &OptProfileSelector) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for OptProfileSelector
impl PartialEq for OptProfileSelector
Source§fn eq(&self, other: &OptProfileSelector) -> bool
fn eq(&self, other: &OptProfileSelector) -> bool
self and other values to be equal, and is used by ==.