pub struct Conv3d<D: Dtype, IT, OT, const RANK: usize> {
pub in_channels: usize,
pub out_channels: usize,
pub kernel_d: usize,
pub kernel_h: usize,
pub kernel_w: usize,
pub stride_d: usize,
pub stride_h: usize,
pub stride_w: usize,
pub padding_d: usize,
pub padding_h: usize,
pub padding_w: usize,
pub has_bias: bool,
/* private fields */
}Expand description
3-D convolution layer: output = conv3d(input, weight) [+ b]
Input shape: [N, C_in, D_in, H_in, W_in ]
Output shape: [N, C_out, D_out, H_out, W_out]
Fields§
§in_channels: usizeNumber of input channels.
out_channels: usizeNumber of output channels.
kernel_d: usizeConvolution kernel depth.
kernel_h: usizeConvolution kernel height.
kernel_w: usizeConvolution kernel width.
stride_d: usizeStride along the depth dimension.
stride_h: usizeStride along the height dimension.
stride_w: usizeStride along the width dimension.
padding_d: usizeZero-padding along the depth dimension.
padding_h: usizeZero-padding along the height dimension.
padding_w: usizeZero-padding along the width dimension.
has_bias: boolWhether to add a learned bias.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<D, IT, OT, const RANK: usize> Freeze for Conv3d<D, IT, OT, RANK>
impl<D, IT, OT, const RANK: usize> RefUnwindSafe for Conv3d<D, IT, OT, RANK>
impl<D, IT, OT, const RANK: usize> Send for Conv3d<D, IT, OT, RANK>
impl<D, IT, OT, const RANK: usize> Sync for Conv3d<D, IT, OT, RANK>
impl<D, IT, OT, const RANK: usize> Unpin for Conv3d<D, IT, OT, RANK>
impl<D, IT, OT, const RANK: usize> UnsafeUnpin for Conv3d<D, IT, OT, RANK>
impl<D, IT, OT, const RANK: usize> UnwindSafe for Conv3d<D, IT, OT, RANK>
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