From a6347daa0578d403cc2cdc3169d68bed86bac4d1 Mon Sep 17 00:00:00 2001 From: qijun Date: Wed, 19 Jul 2017 22:48:24 +0800 Subject: [PATCH] fix clang compile warning --- paddle/operators/mul_op.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/paddle/operators/mul_op.h b/paddle/operators/mul_op.h index 7bd1f7e7598..e6bad7fb9da 100644 --- a/paddle/operators/mul_op.h +++ b/paddle/operators/mul_op.h @@ -26,9 +26,7 @@ class MulKernel : public framework::OpKernel { public: void Compute(const framework::KernelContext& context) const override { Eigen::array, 1> dim_pair = { - Eigen::IndexPair(1, 0)}; - // dim_pair[0].first = 1; - // dim_pair[0].second = 0; + {Eigen::IndexPair(1, 0)}}; auto input0 = context.Input(0)->Get(); auto input1 = context.Input(1)->Get(); -- GitLab