#[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 ExternType for PoolingType
impl ExternType for PoolingType
Source§impl Hash for PoolingType
impl Hash for PoolingType
Source§impl PartialEq for PoolingType
impl PartialEq for PoolingType
impl Eq for PoolingType
impl StructuralPartialEq for PoolingType
impl UniquePtrTarget for PoolingType
impl VectorElement for PoolingType
impl WeakPtrTarget 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 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