#[repr(i32)]pub enum ReduceOperation {
kSUM = 0,
kPROD = 1,
kMAX = 2,
kMIN = 3,
kAVG = 4,
}Expand description
! ! \enum ReduceOperation ! ! \brief Enumerates the reduce operations that may be performed by a Reduce layer. ! ! The table shows the result of reducing across an empty volume of a given type. ! ! Operation | kFLOAT and kHALF | kINT32 | kINT8 ! ——— | —————– | —–– | —– ! kSUM | 0 | 0 | 0 ! kPROD | 1 | 1 | 1 ! kMAX | negative infinity | INT_MIN | -128 ! kMIN | positive infinity | INT_MAX | 127 ! kAVG | NaN | 0 | -128 ! ! The current version of TensorRT usually performs reduction for kINT8 via kFLOAT or kHALF. ! The kINT8 values show the quantized representations of the floating-point values. !
Variants§
Trait Implementations§
Source§impl Clone for ReduceOperation
impl Clone for ReduceOperation
Source§fn clone(&self) -> ReduceOperation
fn clone(&self) -> ReduceOperation
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 ReduceOperation
impl ExternType for ReduceOperation
Source§impl Hash for ReduceOperation
impl Hash for ReduceOperation
Source§impl PartialEq for ReduceOperation
impl PartialEq for ReduceOperation
impl Eq for ReduceOperation
impl StructuralPartialEq for ReduceOperation
impl UniquePtrTarget for ReduceOperation
impl VectorElement for ReduceOperation
impl WeakPtrTarget for ReduceOperation
Auto Trait Implementations§
impl Freeze for ReduceOperation
impl RefUnwindSafe for ReduceOperation
impl Send for ReduceOperation
impl Sync for ReduceOperation
impl Unpin for ReduceOperation
impl UnwindSafe for ReduceOperation
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