pub enum AutoPad {
NotSet,
SameUpper,
SameLower,
Valid,
}Expand description
ONNX auto_pad attribute value.
Specifies how padding should be computed automatically.
When set to anything other than NotSet, the pads attribute is ignored.
Variants§
NotSet
Use explicit pads attribute (default).
SameUpper
Pad so output_size = ceil(input_size / stride). Extra padding at end.
SameLower
Pad so output_size = ceil(input_size / stride). Extra padding at start.
Valid
No padding (equivalent to all-zero pads).
Implementations§
Trait Implementations§
impl Eq for AutoPad
impl StructuralPartialEq for AutoPad
Auto Trait Implementations§
impl Freeze for AutoPad
impl RefUnwindSafe for AutoPad
impl Send for AutoPad
impl Sync for AutoPad
impl Unpin for AutoPad
impl UnsafeUnpin for AutoPad
impl UnwindSafe for AutoPad
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.