Creates a new optimizer object. If there are no parameters given for that particular argument, then that argument will use default value.
Momentum.new(decayRate: number): OptimizerObject
Momentum:setDecayRate(decayRate: number)
Reset optimizer’s stored values (excluding the parameters).
Momentum:reset()