From e9be3366a9cde661293e92306b036aea0ee772c1 Mon Sep 17 00:00:00 2001 From: JiabinYang Date: Fri, 23 Nov 2018 02:49:06 +0000 Subject: [PATCH] test=develop --- paddle/fluid/operators/hierarchical_sigmoid_op.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paddle/fluid/operators/hierarchical_sigmoid_op.h b/paddle/fluid/operators/hierarchical_sigmoid_op.h index 418fe86f69..b4a5fe8309 100644 --- a/paddle/fluid/operators/hierarchical_sigmoid_op.h +++ b/paddle/fluid/operators/hierarchical_sigmoid_op.h @@ -164,7 +164,7 @@ class HierarchicalSigmoidGradOpKernel : public framework::OpKernel { auto pre_out_grad_mat = EigenMatrix::From(pre_out_grad); auto out_grad_mat = EigenMatrix::From(*out_grad); - Eigen::array bcast({{1, static_cast(pre_out_grad.dims()[1])}}); + Eigen::array bcast{1, static_cast(pre_out_grad.dims()[1])}; // softrelu derivative pre_out_grad_mat.device(place) = -- GitLab