Table of Contents

Class Conv2D

Namespace
NeuralNetworks.Operations.Parameterized
Assembly
NeuralNetworks.dll

Dimensions of the input are: [batch, channels, height, width]. Dimensions of the param array are: [channels, filters, kernelSize, kernelSize]. CalcOutput returns an array of dimensions: [batch, filters, height, width]. Padding is assumed to be the same on all sides = kernelSize / 2

public class Conv2D : ParamOperation<float[,,,], float[,,,], float[,,,]>, IParamOperation
Inheritance
Operation<float[,,,], float[,,,]>
ParamOperation<float[,,,], float[,,,], float[,,,]>
Conv2D
Implements
Inherited Members

Constructors

Conv2D(float[,,,], int, int, int, int, int, int)

Dimensions of the input are: [batch, channels, height, width]. Dimensions of the param array are: [channels, filters, kernelSize, kernelSize]. CalcOutput returns an array of dimensions: [batch, filters, height, width]. Padding is assumed to be the same on all sides = kernelSize / 2

public Conv2D(float[,,,] weights, int paddingHeight, int paddingWidth, int strideHeight = 1, int strideWidth = 1, int dilatationHeight = 1, int dilatationWidth = 1)

Parameters

weights float[,,,]
paddingHeight int
paddingWidth int
strideHeight int
strideWidth int
dilatationHeight int
dilatationWidth int

Methods

CalcInputGradient(float[,,,])

Calculates input gradient.

protected override float[,,,] CalcInputGradient(float[,,,] outputGradient)

Parameters

outputGradient float[,,,]

Returns

float[,,,]

Remarks

Based on outputGradient, calculates changes in input.

CalcOutput(bool)

Computes output.

protected override float[,,,] CalcOutput(bool inference)

Parameters

inference bool

Returns

float[,,,]

CalcParamGradient(float[,,,])

protected override float[,,,] CalcParamGradient(float[,,,] outputGradient)

Parameters

outputGradient float[,,,]

Returns

float[,,,]