Table of Contents

Class LeakyReLU4D

Namespace
NeuralNetworks.Operations.ActivationFunctions
Assembly
NeuralNetworks.dll
public class LeakyReLU4D : ActivationFunction<float[,,,], float[,,,]>
Inheritance
Operation<float[,,,], float[,,,]>
LeakyReLU4D
Inherited Members

Constructors

LeakyReLU4D(float, float)

public LeakyReLU4D(float alfa = 0.01, float beta = 1)

Parameters

alfa float
beta float

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[,,,]

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.