BlackCat_Tensors
A GPU-supported autograd and linear algebra library, designed for neural network construction
|
#include <momentum.h>
Public Types | |
using | value_type = typename Tensor::value_type |
Public Member Functions | |
template<class... Args> | |
Optimizer (Args &&... args) | |
template<class TensorX , class Gradients > | |
void | update (TensorX &tensor, Gradients &&delta) |
void | set_learning_rate (value_type lr) |
void | save (Layer_Loader &loader, std::string name) const |
void | load (Layer_Loader &loader, std::string name) |
![]() | |
void | save (Layer_Loader &loader, std::string name) const |
void | load (Layer_Loader &loader, std::string name) |
Public Attributes | |
value_type | alpha = .9 |
value_type | learning_rate = 0.003 |
Tensor | momentum |
using bc::nn::Momentum::Optimizer< Tensor >::value_type = typename Tensor::value_type |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
value_type bc::nn::Momentum::Optimizer< Tensor >::alpha = .9 |
value_type bc::nn::Momentum::Optimizer< Tensor >::learning_rate = 0.003 |
Tensor bc::nn::Momentum::Optimizer< Tensor >::momentum |