#[repr(i32)]pub enum PoolingType {
kMAX = 0,
kAVERAGE = 1,
kMAX_AVERAGE_BLEND = 2,
}Expand description
! ! \enum PoolingType ! ! \brief The type of pooling to perform in a pooling layer. !
Variants§
kMAX = 0
!< Maximum over elements
kAVERAGE = 1
!< Average over elements. If the tensor is padded, the count includes the padding
kMAX_AVERAGE_BLEND = 2
!< Blending between max and average pooling: (1-blendFactor)maxPool + blendFactoravgPool
Trait Implementations§
Source§impl Clone for PoolingType
impl Clone for PoolingType
Source§fn clone(&self) -> PoolingType
fn clone(&self) -> PoolingType
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 PoolingType
impl Debug for PoolingType
Source§impl From<PoolingType> for PoolingType
impl From<PoolingType> for PoolingType
Source§fn from(value: PoolingType) -> Self
fn from(value: PoolingType) -> Self
Converts to this type from the input type.
Source§impl Hash for PoolingType
impl Hash for PoolingType
Source§impl Into<PoolingType> for PoolingType
impl Into<PoolingType> for PoolingType
Source§fn into(self) -> PoolingType
fn into(self) -> PoolingType
Converts this type into the (usually inferred) input type.
Source§impl Ord for PoolingType
impl Ord for PoolingType
Source§fn cmp(&self, other: &PoolingType) -> Ordering
fn cmp(&self, other: &PoolingType) -> Ordering
1.21.0 · 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 PoolingType
impl PartialEq for PoolingType
Source§impl PartialOrd for PoolingType
impl PartialOrd for PoolingType
impl Copy for PoolingType
impl Eq for PoolingType
impl StructuralPartialEq for PoolingType
Auto Trait Implementations§
impl Freeze for PoolingType
impl RefUnwindSafe for PoolingType
impl Send for PoolingType
impl Sync for PoolingType
impl Unpin for PoolingType
impl UnsafeUnpin for PoolingType
impl UnwindSafe for PoolingType
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