|
OpenNN
Open-source neural networks library
|
Per-optimizer scratch state (moments, directions, iteration counter) backing the update step. More...
#include <optimizer.h>
Public Member Functions | |
| OptimizerData ()=default | |
| virtual | ~OptimizerData ()=default |
| virtual void | print () const |
| Prints the optimizer scratch state for debugging. | |
| void | set (const vector< Shape > &slot_shapes, Device device=Device::CPU) |
| Allocates a buffer with the requested slot shapes on the target device and refreshes the views. | |
Public Attributes | |
| Buffer | data |
| vector< TensorView > | views |
| VectorR | potential_parameters |
| VectorR | training_direction |
| float | initial_learning_rate = 0.0f |
| Index | iteration = 0 |
Per-optimizer scratch state (moments, directions, iteration counter) backing the update step.
|
default |
|
virtualdefault |
|
virtual |
Prints the optimizer scratch state for debugging.
| void opennn::OptimizerData::set | ( | const vector< Shape > & | slot_shapes, |
| Device | device = Device::CPU ) |
Allocates a buffer with the requested slot shapes on the target device and refreshes the views.
| Buffer opennn::OptimizerData::data |
| float opennn::OptimizerData::initial_learning_rate = 0.0f |
| Index opennn::OptimizerData::iteration = 0 |
| VectorR opennn::OptimizerData::potential_parameters |
| VectorR opennn::OptimizerData::training_direction |
| vector<TensorView> opennn::OptimizerData::views |