Class ParamOperation2D<TParam>
- Namespace
- NeuralNetworks.Operations
- Assembly
- NeuralNetworks.dll
An Operation with parameters of type TParam.
public abstract class ParamOperation2D<TParam> : ParamOperation2D
Type Parameters
TParam
- Inheritance
-
ParamOperation2D<TParam>
- Derived
- Inherited Members
Constructors
ParamOperation2D(TParam)
An Operation with parameters of type TParam.
protected ParamOperation2D(TParam param)
Parameters
paramTParamParameter matrix.
Properties
Param
protected TParam Param { get; }
Property Value
- TParam
ParamGradient
protected TParam ParamGradient { get; }
Property Value
- TParam
Methods
Backward(float[,])
Converts output gradient to input gradient.
public override float[,] Backward(float[,] outputGradient)
Parameters
outputGradientfloat[,]
Returns
- float[,]
CalcParamGradient(float[,])
protected abstract TParam CalcParamGradient(float[,] outputGradient)
Parameters
outputGradientfloat[,]
Returns
- TParam
CloneBase()
protected override Operation<float[,], float[,]> CloneBase()
Returns
EnsureSameShapeForParam(TParam?, TParam)
[Conditional("DEBUG")]
protected abstract void EnsureSameShapeForParam(TParam? param, TParam paramGradient)
Parameters
paramTParamparamGradientTParam