CPC G06N 3/084 (2013.01) [G06N 3/04 (2013.01)] | 20 Claims |
1. An apparatus comprising:
a memory that stores instructions; and
a hardware processor configured to execute the instructions to:
control a neural network processor to perform a loss gradient operation to generate data gradients;
after the loss gradient operation completes, control the neural network processor to perform a forward propagation operation to regenerate intermediate outputs, the intermediate outputs having been previously generated by the neural network processor;
control the neural network processor to perform a backward propagation operation based on the data gradients and the intermediate outputs to generate weight gradients;
receive the weight gradients from the neural network processor; and
update weights of a neural network based on the weight gradients.
|