Struct burn_core::nn::conv::ConvTranspose1dConfig
source · pub struct ConvTranspose1dConfig {
pub channels: [usize; 2],
pub kernel_size: usize,
pub stride: usize,
pub dilation: usize,
pub groups: usize,
pub padding: usize,
pub padding_out: usize,
pub bias: bool,
pub initializer: Initializer,
}Expand description
Configuration to create an 1D transposed convolution layer.
Fields§
§channels: [usize; 2]The number of channels.
kernel_size: usizeThe size of the kernel.
stride: usizeThe stride of the convolution.
dilation: usizeSpacing between kernel elements.
groups: usizeControls the connections between input and output channels.
padding: usizeThe padding configuration.
padding_out: usizeThe padding output configuration.
bias: boolIf bias should be added to the output.
initializer: InitializerThe type of function used to initialize neural network parameters
Implementations§
source§impl ConvTranspose1dConfig
impl ConvTranspose1dConfig
sourcepub fn with_stride(self, stride: usize) -> Self
pub fn with_stride(self, stride: usize) -> Self
The stride of the convolution.
sourcepub fn with_dilation(self, dilation: usize) -> Self
pub fn with_dilation(self, dilation: usize) -> Self
Spacing between kernel elements.
sourcepub fn with_groups(self, groups: usize) -> Self
pub fn with_groups(self, groups: usize) -> Self
Controls the connections between input and output channels.
sourcepub fn with_padding(self, padding: usize) -> Self
pub fn with_padding(self, padding: usize) -> Self
The padding configuration.
sourcepub fn with_padding_out(self, padding_out: usize) -> Self
pub fn with_padding_out(self, padding_out: usize) -> Self
The padding output configuration.
sourcepub fn with_initializer(self, initializer: Initializer) -> Self
pub fn with_initializer(self, initializer: Initializer) -> Self
The type of function used to initialize neural network parameters
source§impl ConvTranspose1dConfig
impl ConvTranspose1dConfig
sourcepub fn init<B: Backend>(&self) -> ConvTranspose1d<B>
pub fn init<B: Backend>(&self) -> ConvTranspose1d<B>
Initialize a new conv transpose 1d module.
sourcepub fn init_with<B: Backend>(
&self,
record: ConvTranspose1dRecord<B>
) -> ConvTranspose1d<B>
pub fn init_with<B: Backend>( &self, record: ConvTranspose1dRecord<B> ) -> ConvTranspose1d<B>
Initialize a new conv transpose 1d module with a record.
Trait Implementations§
source§impl Clone for ConvTranspose1dConfig
impl Clone for ConvTranspose1dConfig
source§impl Config for ConvTranspose1dConfig
impl Config for ConvTranspose1dConfig
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 ConvTranspose1dConfig
impl Debug for ConvTranspose1dConfig
source§impl<'de> Deserialize<'de> for ConvTranspose1dConfig
impl<'de> Deserialize<'de> for ConvTranspose1dConfig
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 ConvTranspose1dConfig
impl Display for ConvTranspose1dConfig
Auto Trait Implementations§
impl RefUnwindSafe for ConvTranspose1dConfig
impl Send for ConvTranspose1dConfig
impl Sync for ConvTranspose1dConfig
impl Unpin for ConvTranspose1dConfig
impl UnwindSafe for ConvTranspose1dConfig
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