pub struct ConvTranspose3d {
pub weight: Param<Array>,
pub bias: Param<Option<Array>>,
pub padding: (i32, i32, i32),
pub stride: (i32, i32, i32),
}
Expand description
Applies a 3-dimensional convolution over the multi-channel input image.
The channels are expected to be last i.e. the input shape should be NHWC
where:
N
is the batch dimensionH
is the input image heightW
is the input image widthC
is the number of input channels
Fields§
§weight: Param<Array>
The weight of the convolution layer.
bias: Param<Option<Array>>
The bias of the convolution layer.
padding: (i32, i32, i32)
Padding. Default to (0, 0, 0)
if not specified.
stride: (i32, i32, i32)
Stride. Default to (1, 1, 1)
if not specified.
Implementations§
Source§impl ConvTranspose3d
impl ConvTranspose3d
Sourcepub const DEFAULT_BIAS: bool = true
pub const DEFAULT_BIAS: bool = true
Default value for bias
if not specified.
Sourcepub const DEFAULT_PADDING: SingleOrTriple<i32> = _
pub const DEFAULT_PADDING: SingleOrTriple<i32> = _
Default value for padding
if not specified.
Sourcepub const DEFAULT_STRIDE: SingleOrTriple<i32> = _
pub const DEFAULT_STRIDE: SingleOrTriple<i32> = _
Default value for stride
if not specified.
Trait Implementations§
Source§impl Buildable for ConvTranspose3d
impl Buildable for ConvTranspose3d
Source§type Builder = ConvTranspose3dBuilder
type Builder = ConvTranspose3dBuilder
The builder type for this buildable type
Source§impl Clone for ConvTranspose3d
impl Clone for ConvTranspose3d
Source§fn clone(&self) -> ConvTranspose3d
fn clone(&self) -> ConvTranspose3d
Returns a copy 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 moreSource§impl Debug for ConvTranspose3d
impl Debug for ConvTranspose3d
Source§impl Module<&Array> for ConvTranspose3d
impl Module<&Array> for ConvTranspose3d
Source§impl ModuleParameters for ConvTranspose3d
impl ModuleParameters for ConvTranspose3d
Source§fn freeze_parameters(&mut self, recursive: bool)
fn freeze_parameters(&mut self, recursive: bool)
Freeze all parameters in the module.
Source§fn unfreeze_parameters(&mut self, recursive: bool)
fn unfreeze_parameters(&mut self, recursive: bool)
Unfreeze all parameters in the module.
Source§fn parameters(&self) -> ModuleParamRef<'_>
fn parameters(&self) -> ModuleParamRef<'_>
Get references to the module parameters.
Source§fn parameters_mut(&mut self) -> ModuleParamMut<'_>
fn parameters_mut(&mut self) -> ModuleParamMut<'_>
Get mutable references to the module parameters.
Source§fn trainable_parameters(&self) -> ModuleParamRef<'_>
fn trainable_parameters(&self) -> ModuleParamRef<'_>
Get references to the trainable parameters. A parameter is trainable if it is NOT frozen.
Source§fn all_frozen(&self) -> Option<bool>
fn all_frozen(&self) -> Option<bool>
Check if all parameters in the module are frozen. Returns
None
if there are no parameters.Source§fn any_frozen(&self) -> Option<bool>
fn any_frozen(&self) -> Option<bool>
Check if any parameter in the module is frozen. Returns
None
if there are no parameters.Source§fn update(&mut self, parameters: ModuleParam)
fn update(&mut self, parameters: ModuleParam)
Update the module parameters.
Source§fn update_flattened(&mut self, flattened_parameters: FlattenedModuleParam)
fn update_flattened(&mut self, flattened_parameters: FlattenedModuleParam)
Update the module parameters from a flattened representation.
Auto Trait Implementations§
impl Freeze for ConvTranspose3d
impl RefUnwindSafe for ConvTranspose3d
impl Send for ConvTranspose3d
impl !Sync for ConvTranspose3d
impl Unpin for ConvTranspose3d
impl UnwindSafe for ConvTranspose3d
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
.Source§impl<T> IntoStrideBy for T
impl<T> IntoStrideBy for T
Source§impl<T> ModuleParametersExt for Twhere
T: ModuleParameters,
impl<T> ModuleParametersExt for Twhere
T: ModuleParameters,
Source§impl<T> Parameter for Twhere
T: ModuleParameters,
impl<T> Parameter for Twhere
T: ModuleParameters,
Source§fn is_frozen(&self) -> Option<bool>
fn is_frozen(&self) -> Option<bool>
Check if the parameter is frozen. Returns
None
if the parameter is a module that has no
parameters.Source§fn as_nested_value(&self) -> NestedValue<Rc<str>, &Array>
fn as_nested_value(&self) -> NestedValue<Rc<str>, &Array>
Get the parameter as a nested value.
Source§fn as_nested_value_mut(&mut self) -> NestedValue<Rc<str>, &mut Array>
fn as_nested_value_mut(&mut self) -> NestedValue<Rc<str>, &mut Array>
Get the parameter as a mutable nested value.
Source§fn as_trainable_nested_value(&self) -> Option<NestedValue<Rc<str>, &Array>>
fn as_trainable_nested_value(&self) -> Option<NestedValue<Rc<str>, &Array>>
Get the parameter as a nested value if it is trainable.
Source§impl<T> Updatable for Twhere
T: ModuleParameters,
impl<T> Updatable for Twhere
T: ModuleParameters,
Source§fn updatable_states(&self) -> impl IntoIterator<Item = &Array>
fn updatable_states(&self) -> impl IntoIterator<Item = &Array>
Returns a list of references to the updatable states. Read more
Source§fn updatable_states_mut(&mut self) -> impl IntoIterator<Item = &mut Array>
fn updatable_states_mut(&mut self) -> impl IntoIterator<Item = &mut Array>
Returns a list of mutable references to the updatable states. Read more