brainspy.algorithms.gd#
File containing the gradient descent algorithm methods adapted for DNPU classes and custom torch.nn.Module children custom classes that contain DNPU classes or DNPU based modules from brainspy.processors.modules.
Functions
|
Deafult training step for training a torch model in Gradiet descent. |
|
To calulate the validation loss in each training step of the Gradient descent. |
|
Main training loop for off-chip gradient descent training with early stopping using PyTorch. |
|
Main training loop for off-chip gradient descent training with early stopping using PyTorch. |