Table of Contents

Class DenseLayer

Namespace
NeuralNetworks.Layers
Assembly
NeuralNetworks.dll
public class DenseLayer : Layer<float[,], float[,]>
Inheritance
Layer<float[,], float[,]>
DenseLayer
Inherited Members

Constructors

DenseLayer(int, ActivationFunction2D, ParamInitializer, BaseDropout2D?)

public DenseLayer(int neurons, ActivationFunction2D activationFunction, ParamInitializer paramInitializer, BaseDropout2D? dropout = null)

Parameters

neurons int
activationFunction ActivationFunction2D
paramInitializer ParamInitializer
dropout BaseDropout2D

Methods

CreateOperationListBuilder()

public override OperationListBuilder<float[,], float[,]> CreateOperationListBuilder()

Returns

OperationListBuilder<float[,], float[,]>

EnsureSameShapeForInput(float[,]?, float[,]?)

protected override void EnsureSameShapeForInput(float[,]? input, float[,]? inputGradient)

Parameters

input float[,]
inputGradient float[,]

EnsureSameShapeForOutput(float[,]?, float[,]?)

protected override void EnsureSameShapeForOutput(float[,]? output, float[,]? outputGradient)

Parameters

output float[,]
outputGradient float[,]

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.