Skip to content

Commit

Permalink
fix bug in adam update (#167)
Browse files Browse the repository at this point in the history
fix a bug in adam update
  • Loading branch information
eric-haibin-lin committed Aug 15, 2017
1 parent eeff444 commit 54f698b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/operator/optimizer_op-inl.h
Original file line number Diff line number Diff line change
Expand Up @@ -733,7 +733,7 @@ struct AdamDnsRspDnsKernel {
(1.f - beta2) * grad_rescaled * grad_rescaled;
}
KERNEL_ASSIGN(out_data[data_i], req, weight_data[data_i] - lr * mean_data[data_i] /
square_root::Map(var_data[data_i]) + epsilon);
(square_root::Map(var_data[data_i]) + epsilon));
}
}
};
Expand Down

0 comments on commit 54f698b

Please sign in to comment.