pub struct Conv1dBuilder {
pub input_channels: i32,
pub output_channels: i32,
pub kernel_size: i32,
pub bias: bool,
pub stride: i32,
pub padding: i32,
pub dilation: i32,
pub groups: i32,
}Expand description
Builder for the Conv1d module.
Fields§
§input_channels: i32Number of input channels.
output_channels: i32Number of output channels.
kernel_size: i32Size of the convolution filters.
bias: boolIf true, add a learnable bias to the output. Default to Conv1d::DEFAULT_BIAS if not
specified.
stride: i32Stride. Default to Conv1d::DEFAULT_STRIDE if not specified.
padding: i32Padding. Default to Conv1d::DEFAULT_PADDING if not specified.
dilation: i32Dilation. Default to Conv1d::DEFAULT_DILATION if not specified.
groups: i32Groups. Default to Conv1d::DEFAULT_GROUPS if not specified.
Implementations§
Source§impl Conv1dBuilder
impl Conv1dBuilder
Source§impl Conv1dBuilder
impl Conv1dBuilder
Trait Implementations§
Source§impl Builder<Conv1d> for Conv1dBuilder
impl Builder<Conv1d> for Conv1dBuilder
Source§impl Clone for Conv1dBuilder
impl Clone for Conv1dBuilder
Source§fn clone(&self) -> Conv1dBuilder
fn clone(&self) -> Conv1dBuilder
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 Conv1dBuilder
impl RefUnwindSafe for Conv1dBuilder
impl Send for Conv1dBuilder
impl Sync for Conv1dBuilder
impl Unpin for Conv1dBuilder
impl UnwindSafe for Conv1dBuilder
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.