Skip to content

🧪 Convolutional2DLayer

A convolutional 2D Layer.

Parent type: Layer

Parameters:

Name Type Description Default
outputChannel Int the amount of output channels -
kernelSize Int the size of the kernel -
stride Int the stride of the convolution 1
padding Int the padding of the convolution 0

Inheritors:

Stub code in Convolutional2DLayer.sdsstub

@Experimental
@Category(DataScienceCategory.ModelingQNeuralNetwork)
class Convolutional2DLayer(
    @PythonName("output_channel") outputChannel: Int,
    @PythonName("kernel_size") kernelSize: Int,
    stride: Int = 1,
    padding: Int = 0
) sub Layer {
    /**
     * Get the input_size of this layer.
     */
    @PythonName("input_size") attr inputSize: ModelImageSize
    /**
     * Get the output_size of this layer.
     */
    @PythonName("output_size") attr outputSize: ModelImageSize
}

inputSize

Get the input_size of this layer.

Type: ModelImageSize

outputSize

Get the output_size of this layer.

Type: ModelImageSize