pub struct ConvTranspose1dBuilder {
pub input_channels: i32,
pub output_channels: i32,
pub kernel_size: i32,
pub bias: bool,
pub padding: i32,
pub output_padding: i32,
pub stride: i32,
}Expand description
Builder for the ConvTranspose1d module.
Fields§
§input_channels: i32The number of input channels.
output_channels: i32The number of output channels.
kernel_size: i32The size of the convolution filters.
bias: boolIf true, add a learnable bias to the output. Default to ConvTranspose1d::DEFAULT_BIAS if not
specified.
padding: i32Padding. Default to ConvTranspose1d::DEFAULT_PADDING if not specified.
output_padding: i32Output padding. Default to ConvTranspose1d::DEFAULT_OUTPUT_PADDING if not specified.
stride: i32Stride. Default to ConvTranspose1d::DEFAULT_STRIDE if not specified.
Implementations§
Source§impl ConvTranspose1dBuilder
impl ConvTranspose1dBuilder
Sourcepub fn output_padding(self, output_padding: impl Into<i32>) -> Self
pub fn output_padding(self, output_padding: impl Into<i32>) -> Self
Sets the value of [output_padding].
Trait Implementations§
Source§impl Clone for ConvTranspose1dBuilder
impl Clone for ConvTranspose1dBuilder
Source§fn clone(&self) -> ConvTranspose1dBuilder
fn clone(&self) -> ConvTranspose1dBuilder
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 moreAuto Trait Implementations§
impl Freeze for ConvTranspose1dBuilder
impl RefUnwindSafe for ConvTranspose1dBuilder
impl Send for ConvTranspose1dBuilder
impl Sync for ConvTranspose1dBuilder
impl Unpin for ConvTranspose1dBuilder
impl UnwindSafe for ConvTranspose1dBuilder
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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoOption<T> for T
impl<T> IntoOption<T> for T
Source§fn into_option(self) -> Option<T>
fn into_option(self) -> Option<T>
Convert into an
Option.