Optimizer interface.
More...
#include <optimizer.h>
| mxnet::cpp::Optimizer::Optimizer |
( |
unsigned |
begin_num_update | ) |
|
|
explicit |
constructor
- Parameters
-
| beign_num_update | The initial number of updates |
| virtual mxnet::cpp::Optimizer::~Optimizer |
( |
| ) |
|
|
virtual |
| virtual void mxnet::cpp::Optimizer::CreateState_ |
( |
int |
index, |
|
|
NDArray |
weight |
|
) |
| |
|
protectedvirtual |
| float mxnet::cpp::Optimizer::GetLR_ |
( |
int |
index | ) |
|
|
protected |
| const std::vector<const char*> mxnet::cpp::Optimizer::GetParamKeys_ |
( |
| ) |
const |
|
protected |
| const std::vector<const char*> mxnet::cpp::Optimizer::GetParamValues_ |
( |
| ) |
const |
|
protected |
| virtual std::string mxnet::cpp::Optimizer::GetType |
( |
| ) |
const |
|
pure virtual |
| float mxnet::cpp::Optimizer::GetWD_ |
( |
int |
index | ) |
|
|
protected |
| static OpMap*& mxnet::cpp::Optimizer::op_map |
( |
| ) |
|
|
staticprotected |
| std::string mxnet::cpp::Optimizer::Serialize |
( |
| ) |
const |
Serialize the optimizer parameters to a string.
- Returns
- serialization
set the lr scheduler
- Parameters
-
| lrScheduler | lr scheduler used for this optimizer |
- Returns
- reference if self
template<typename T >
| Optimizer* mxnet::cpp::Optimizer::SetParam |
( |
const std::string & |
name, |
|
|
const T & |
value |
|
) |
| |
|
inline |
set config parameters
- Parameters
-
| name | name of the config parameter |
| value | value of the config parameter |
- Returns
- reference of self
| virtual void mxnet::cpp::Optimizer::Update |
( |
int |
index, |
|
|
NDArray |
weight, |
|
|
NDArray |
grad |
|
) |
| |
|
pure virtual |
| unsigned mxnet::cpp::Optimizer::UpdateCount_ |
( |
int |
index | ) |
|
|
protected |
| unsigned mxnet::cpp::Optimizer::begin_num_update_ |
|
protected |
| std::map<int, unsigned> mxnet::cpp::Optimizer::count_ |
|
protected |
| std::unique_ptr<LRScheduler> mxnet::cpp::Optimizer::lrScheduler_ = nullptr |
|
protected |
| unsigned mxnet::cpp::Optimizer::num_update_ |
|
protected |
| std::map<std::string, std::string> mxnet::cpp::Optimizer::params_ |
|
protected |
The documentation for this class was generated from the following file: