diff --git a/paddle/gserver/layers/MKLPackedWeight.h b/paddle/gserver/layers/MKLPackedWeight.h index a8dcfd561b65508b7d7b4c5d587ca02460be5d61..cc8a336154970c2ed4532633ff2e0c2d05804a85 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();