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
-
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
weightsfloat[,,,]paddingHeightintpaddingWidthintstrideHeightintstrideWidthintdilatationHeightintdilatationWidthint
Methods
CalcInputGradient(float[,,,])
Calculates input gradient.
protected override float[,,,] CalcInputGradient(float[,,,] outputGradient)
Parameters
outputGradientfloat[,,,]
Returns
- float[,,,]
Remarks
Based on outputGradient, calculates changes in input.
CalcOutput(bool)
Computes output.
protected override float[,,,] CalcOutput(bool inference)
Parameters
inferencebool
Returns
- float[,,,]
CalcParamGradient(float[,,,])
protected override float[,,,] CalcParamGradient(float[,,,] outputGradient)
Parameters
outputGradientfloat[,,,]
Returns
- float[,,,]