From 4360615850a01a32747b7a4e4d8f99f0ff8c6252 Mon Sep 17 00:00:00 2001 From: tensor-tang Date: Fri, 22 Dec 2017 16:34:24 +0800 Subject: [PATCH] fix compile error --- paddle/gserver/layers/MKLPackedWeight.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paddle/gserver/layers/MKLPackedWeight.h b/paddle/gserver/layers/MKLPackedWeight.h index a8dcfd561b..cc8a336154 100644 --- a/paddle/gserver/layers/MKLPackedWeight.h +++ b/paddle/gserver/layers/MKLPackedWeight.h @@ -29,7 +29,7 @@ protected: bool transW_; public: - MKLPackedWeight(MatrixPtr weight, bool transW = false) { + explicit MKLPackedWeight(MatrixPtr weight, bool transW = false) { packedWeight_ = nullptr; weight_ = weight->getData(); height_ = weight->getHeight(); -- GitLab