1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
//! Convolutional layers and shared padding types
//!
//! Re-exports the 1D, 2D, and 3D convolution layers, their transposed counterparts, and the
//! depthwise and separable convolution layers in 1D and 2D. Defines
//! [`PaddingType`], which controls spatial padding, and re-exports [`ConvPadding`], which adds the
//! causal rule that only [`Conv1D`] accepts
//!
//! [`PaddingType`]: crate::neural_network::layers::convolution::PaddingType
/// Padding method used by convolutional and pooling layers
///
/// Determines how the layer pads its input before the operation runs. Defaults to
/// [`PaddingType::Valid`] (no padding)
/// 1D convolutional layer
/// 1D transposed convolutional layer
/// 2D convolutional layer
/// 2D transposed convolutional layer
/// 3D convolutional layer
/// 3D transposed convolutional layer
/// Dimension-generic transposed-convolution engine shared by Conv1DTranspose, Conv2DTranspose,
/// and Conv3DTranspose
/// Dimension-generic convolution engine shared by Conv1D, Conv2D, Conv3D, and the pointwise
/// stage of the separable convolutions
pub
/// 1D depthwise convolutional layer
/// 2D depthwise convolutional layer
/// 1D separable convolutional layer
/// 2D separable convolutional layer
/// Parameter and input-shape validation shared by the convolution layers
pub use Conv1D;
pub use Conv1DTranspose;
pub use Conv2D;
pub use Conv2DTranspose;
pub use Conv3D;
pub use Conv3DTranspose;
pub use ConvPadding;
pub use DepthwiseConv1D;
pub use DepthwiseConv2D;
pub use SeparableConv1D;
pub use SeparableConv2D;