klyn.math.nn.layers.DenseGradients.DenseGradients
constructor
public DenseGradients(inputs as NDArray<T>, weights as NDArray<T>, bias as NDArray<T>)
Description

Groups gradients computed by Dense.backward; arrays are not copied.

Parameters
ParameterDescription
inputsGradient propagated to the preceding layer.
weightsGradient of the weight matrix.
biasGradient of the bias row.
Example

result = DenseGradients<Float>(dx, dw, db)