Struct burn_core::nn::Unfold4dConfig
source · pub struct Unfold4dConfig {
pub kernel_size: [usize; 2],
pub stride: [usize; 2],
pub dilation: [usize; 2],
pub padding: [usize; 2],
}Expand description
Configuration to create an unfold 4D layer.
Fields§
§kernel_size: [usize; 2]The size of the kernel.
stride: [usize; 2]The stride of the convolution.
dilation: [usize; 2]Spacing between kernel elements.
padding: [usize; 2]The padding configuration.
Implementations§
source§impl Unfold4dConfig
impl Unfold4dConfig
sourcepub fn with_stride(self, stride: [usize; 2]) -> Self
pub fn with_stride(self, stride: [usize; 2]) -> Self
The stride of the convolution.
sourcepub fn with_dilation(self, dilation: [usize; 2]) -> Self
pub fn with_dilation(self, dilation: [usize; 2]) -> Self
Spacing between kernel elements.
sourcepub fn with_padding(self, padding: [usize; 2]) -> Self
pub fn with_padding(self, padding: [usize; 2]) -> Self
The padding configuration.
Trait Implementations§
source§impl Clone for Unfold4dConfig
impl Clone for Unfold4dConfig
source§impl Config for Unfold4dConfig
impl Config for Unfold4dConfig
source§fn save<P: AsRef<Path>>(&self, file: P) -> Result<()>
fn save<P: AsRef<Path>>(&self, file: P) -> Result<()>
Saves the configuration to a file. Read more
source§fn load<P: AsRef<Path>>(file: P) -> Result<Self, ConfigError>
fn load<P: AsRef<Path>>(file: P) -> Result<Self, ConfigError>
Loads the configuration from a file. Read more
source§fn load_binary(data: &[u8]) -> Result<Self, ConfigError>
fn load_binary(data: &[u8]) -> Result<Self, ConfigError>
Loads the configuration from a binary buffer. Read more
source§impl Debug for Unfold4dConfig
impl Debug for Unfold4dConfig
source§impl<'de> Deserialize<'de> for Unfold4dConfig
impl<'de> Deserialize<'de> for Unfold4dConfig
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
source§impl Display for Unfold4dConfig
impl Display for Unfold4dConfig
Auto Trait Implementations§
impl RefUnwindSafe for Unfold4dConfig
impl Send for Unfold4dConfig
impl Sync for Unfold4dConfig
impl Unpin for Unfold4dConfig
impl UnwindSafe for Unfold4dConfig
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