pub enum Padding {
Same,
No,
}
Expand description
Type of padding to use in a Conv node . No
padding means a non-strided
convolution will shrink by the dimensions of the kernel as pixels at the edge will not be the
center of a convolution. Same
padding allows for convolution of edge pixels by assuming
the values beyond the images are equal to the edge. Other not implemented padding strategies
are “Zero” padding or “Reflection” padding.
Variants§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Padding
impl<'de> Deserialize<'de> for Padding
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more