Package ai.djl.nn.convolutional
package ai.djl.nn.convolutional
Contains classes that define convolutional operations extending
Convolution and Deconvolution.-
ClassesClassDescriptionA
Conv1dlayer works similar toConvolutionlayer with the exception of the number of dimension it operates on being only one, which isLayoutType.WIDTH.AConv1dTransposelayer works similar toDeconvolutionlayer with the exception of the number of dimension it operates on being only one, which isLayoutType.WIDTH.The Builder to construct aConv1dTransposetype ofBlock.Being the pioneer of convolution layers,Conv2dlayer works on two dimensions of input,LayoutType.WIDTHandLayoutType.HEIGHTas usually aConv2dlayer is used to process data with two spatial dimensions, namely image.The Builder to construct aConv2dTransposetype ofBlock.Conv3dlayer behaves just asConvolutiondoes, with the distinction being it operates of 3-dimensional data such as medical images or video data.A convolution layer does a dot product calculation on each channel of \(k\)-channel input data by specified number of filters, each containing \(k\) kernels for calculating each channel in the input data and then summed per filter, hence the number of filters denote the number of output channels of a convolution layer.A builder that can build anyConvolutionblock.Transposed convolution, also named fractionally-strided convolution Dumoulin & Visin or deconvolution Long et al., 2015, serves this purpose.A builder that can build anyDeconvolutionblock.