diff --git a/paddle/math/Matrix.h b/paddle/math/Matrix.h index 31438c7c9bcaf37a0f42184e188c5cc68d659034..ba5edb4030c6254014bf0f2241e16055914527bd 100644 --- a/paddle/math/Matrix.h +++ b/paddle/math/Matrix.h @@ -2065,8 +2065,8 @@ public: }; class SharedCpuMatrix : public CpuMatrix { -#ifndef PADDLE_MOBILE_INFERENCE public: +#ifndef PADDLE_MOBILE_INFERENCE /* blockNum is number of partitions of the matrix */ SharedCpuMatrix(int blockNum, size_t height, size_t width, bool trans = false) : CpuMatrix(height, width, trans) { diff --git a/paddle/parameter/Parameter.cpp b/paddle/parameter/Parameter.cpp index 44fef2a2ade6da56c53c2d6e55da3c45d89d9eb1..3b0f09cea6eb34915f21b11fcea6028821a8c3ff 100644 --- a/paddle/parameter/Parameter.cpp +++ b/paddle/parameter/Parameter.cpp @@ -202,6 +202,7 @@ void Parameter::setMat(ParameterType pType, int matType) { } } #ifndef PADDLE_MOBILE_INFERENCE + // NOLINTNEXTLINE else if (matType == MAT_NORMAL_SHARED) { CHECK_EQ(height * width, bufs_[pType]->getSize()); size_t blockNum = 0; @@ -263,6 +264,7 @@ void Parameter::setMat(ParameterType pType, int matType) { mats_[pType] = std::make_shared(height, width); } #endif + // NOLINTNEXTLINE else { LOG(FATAL) << "Unsupported mat type" << matType; }