update
Updates the parameters of the model based on the outputs computed during the forward pass.
Parameters
epoch
The current epoch.
layer
The layer whose parameters are being updated.
weight Gradients
The gradients of the weights computed during the backward pass.
bias Gradients
The gradients of the biases computed during the backward pass.