nuget server logo nuget api documents
↑

API Docs / Microsoft.VisualBasic.DeepLearning / Convolution

Convolution

Full name Microsoft.VisualBasic.MachineLearning.Convolutional.Convolution Assembly Microsoft.VisualBasic.DeepLearning Members 10

Convolutional layer of a CeNiN network: it slides a bank of filters over the padded input and produces one output feature map per filter.

00 Remarks

The filter bank is stored as a tensor with dimensions [filterHeight, filterWidth, channels, filterCount]. The forward pass first materializes every receptive field of the input into a matrix and then multiplies it with the flattened filters in parallel, which keeps the hot loop cache friendly.

01 Syntax

Microsoft.VisualBasic.MachineLearning.Convolutional.Convolution

02 Methods

NameOverloadsSummary
.ctor 1 Creates a convolutional layer.
setOutputDims 1 Computes the output dimensions from the padded input size, the filter size and the stride, producing [outHeight, outWidth, filterCount].
layerFeedNext 1 Runs the convolution: it gathers the receptive fields into a matrix, multiplies them with the filters in parallel and adds the filter biases.

03 Properties

NameOverloadsSummary
type 1 Gets the layer kind, always LayerTypes.Convolution.

04 Fields

NameOverloadsSummary
stride 2 The vertical and horizontal stride [strideY, strideX] of the sliding window.
weights 2 The filter bank, shaped [filterHeight, filterWidth, channels, filterCount].
biases 2 One bias value per output filter.

05 Members

method .ctor #
#ctor(Int32(), Int32())

Creates a convolutional layer.

Parameters
NameTypeDescription
inputTensorDimsInt32()

The unpadded dimensions [height, width, channels] of the input.

padInt32()

The padding [top, bottom, left, right] applied to the input borders.

method setOutputDims #
setOutputDims

Computes the output dimensions from the padded input size, the filter size and the stride, producing [outHeight, outWidth, filterCount].

method layerFeedNext #
layerFeedNext

Runs the convolution: it gathers the receptive fields into a matrix, multiplies them with the filters in parallel and adds the filter biases.

Returns

This layer instance once the feature maps have been written to the next layer.

property type #
type

Gets the layer kind, always LayerTypes.Convolution.

field stride #
stride

The vertical and horizontal stride [strideY, strideX] of the sliding window.

field weights #
weights

The filter bank, shaped [filterHeight, filterWidth, channels, filterCount].

field biases #
biases

One bias value per output filter.

field stride overload 2 #
stride
field weights overload 2 #
weights
field biases overload 2 #
biases