pub struct Conv3dBuilder {
pub input_channels: i32,
pub output_channels: i32,
pub kernel_size: SingleOrTriple<i32>,
pub bias: bool,
pub stride: SingleOrTriple<i32>,
pub padding: SingleOrTriple<i32>,
pub dilation: SingleOrTriple<i32>,
pub groups: i32,
}Expand description
Builder for the Conv3d module.
Fields§
§input_channels: i32Number of input channels.
output_channels: i32Number of output channels.
kernel_size: SingleOrTriple<i32>Size of the convolution filters.
bias: boolIf true, add a learnable bias to the output. Default to Conv3d::DEFAULT_BIAS if not
specified.
stride: SingleOrTriple<i32>Stride. Default to Conv3d::DEFAULT_STRIDE if not specified.
padding: SingleOrTriple<i32>Padding. Default to Conv3d::DEFAULT_PADDING if not specified.
dilation: SingleOrTriple<i32>Dilation. Default to Conv3d::DEFAULT_DILATION if not specified.
groups: i32Groups. Default to Conv3d::DEFAULT_GROUPS if not specified.
Implementations§
Source§impl Conv3dBuilder
impl Conv3dBuilder
Sourcepub fn new(
input_channels: impl Into<i32>,
output_channels: impl Into<i32>,
kernel_size: impl Into<SingleOrTriple<i32>>,
) -> Self
pub fn new( input_channels: impl Into<i32>, output_channels: impl Into<i32>, kernel_size: impl Into<SingleOrTriple<i32>>, ) -> Self
Creates a new Conv3dBuilder.
Source§impl Conv3dBuilder
impl Conv3dBuilder
Sourcepub fn stride(self, stride: impl Into<SingleOrTriple<i32>>) -> Self
pub fn stride(self, stride: impl Into<SingleOrTriple<i32>>) -> Self
Sets the value of [stride].
Sourcepub fn padding(self, padding: impl Into<SingleOrTriple<i32>>) -> Self
pub fn padding(self, padding: impl Into<SingleOrTriple<i32>>) -> Self
Sets the value of [padding].
Sourcepub fn dilation(self, dilation: impl Into<SingleOrTriple<i32>>) -> Self
pub fn dilation(self, dilation: impl Into<SingleOrTriple<i32>>) -> Self
Sets the value of [dilation].
Trait Implementations§
Source§impl Builder<Conv3d> for Conv3dBuilder
impl Builder<Conv3d> for Conv3dBuilder
Source§impl Clone for Conv3dBuilder
impl Clone for Conv3dBuilder
Source§fn clone(&self) -> Conv3dBuilder
fn clone(&self) -> Conv3dBuilder
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 Conv3dBuilder
impl RefUnwindSafe for Conv3dBuilder
impl Send for Conv3dBuilder
impl Sync for Conv3dBuilder
impl Unpin for Conv3dBuilder
impl UnwindSafe for Conv3dBuilder
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.