You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by GitBox <gi...@apache.org> on 2019/11/26 19:39:13 UTC
[GitHub] [incubator-mxnet] eric-haibin-lin commented on a change in pull
request #16903: changing data type of 't' to int in lamb_update_phase1
eric-haibin-lin commented on a change in pull request #16903: changing data type of 't' to int in lamb_update_phase1
URL: https://github.com/apache/incubator-mxnet/pull/16903#discussion_r350943950
##########
File path: src/operator/optimizer_op-inl.h
##########
@@ -1639,8 +1639,8 @@ struct LambUpdatePhaseOneKernel {
DType g = mean_data[i] / (square_root::Map(var_data[i]) + epsilon) + wd * weight_data[i];
if (bias_correction) {
- DType mean_hat = mean_data[i] / (1. - power::Map(beta1, t));
- DType var_hat = var_data[i] / (1 - power::Map(beta2, t));
+ DType mean_hat = mean_data[i] / (1. - std::pow(beta1, t));
Review comment:
@apeforest i'm not sure mshadow allows mixed data type as inputs
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services