Optimizers in cpp


#1

Are all optimizers (and other full code) available for c++ implementation? I see no class for optimizers following this link https://mxnet.apache.org/api/c++/index.html


#2

Hi @han-so1omon,

Yes, you should be able to instantiate optimisers using:

Optimizer* opt = OptimizerRegistry::Find("sgd");

And set properties of the optimiser using:

opt->SetParam("rescale_grad", 1.0/batch_size);

See this tutorial for an example of its usage.


#3

Thanks for reply. Is autograd api available for cpp?