public class DenseGradients<T extends AbstractFloat = Float>
Gradients of an affine layer with respect to its inputs, weights and bias. No optimizer step has been applied to these independent arrays.
gradients = layer.backward(inputs, upstream)
| Modifier and Type | Member | Description |
|---|---|---|
| public readonly property | biasbias as NDArray<T> |
Bias gradient [1, units]. |
| public readonly property | inputsinputs as NDArray<T> |
Input gradient [batch, inputs]. |
| public readonly property | weightsweights as NDArray<T> |
Weight gradient [inputs, units]. |
| Modifier and Type | Member | Description |
|---|---|---|
| public | DenseGradientsDenseGradients(inputs as NDArray<T>, weights as NDArray<T>, bias as NDArray<T>) |
Groups gradients computed by Dense.backward; arrays are not copied. |