Commit c5582724 authored by Phil Wang's avatar Phil Wang
Browse files

missed adagrad

parent af034309
...@@ -1691,6 +1691,7 @@ kOptimizerStatic8bit1StateBlockwise(T* p, T* __restrict__ const g, unsigned char ...@@ -1691,6 +1691,7 @@ kOptimizerStatic8bit1StateBlockwise(T* p, T* __restrict__ const g, unsigned char
if(weight_decay > 0.0f) { if(weight_decay > 0.0f) {
switch(OPTIMIZER) { switch(OPTIMIZER) {
case MOMENTUM: case MOMENTUM:
case ADAGRAD:
case RMSPROP: case RMSPROP:
g_val += ((float)p_vals[j])*weight_decay; g_val += ((float)p_vals[j])*weight_decay;
break; break;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment