Table of Contents

Class ActivationFunction<TIn, TOut>

Namespace
NeuralNetworks.Operations.ActivationFunctions
Assembly
NeuralNetworks.dll

Defines an abstract 2D activation function operation applied element-wise to two-dimensional data.

public abstract class ActivationFunction<TIn, TOut> : Operation<TIn, TOut> where TIn : notnull where TOut : notnull

Type Parameters

TIn
TOut
Inheritance
Operation<TIn, TOut>
ActivationFunction<TIn, TOut>
Derived
Inherited Members

Remarks

Activation functions introduce non-linearity into neural network computations. This base class specifies the contract for operations that transform 2D tensors (e.g., matrices or 2D feature maps), and are typically used in layers processing spatial data without an explicit channel dimension. Concrete implementations should provide the forward activation and, where applicable, support gradient computation for backpropagation by deriving from Operation.