Skip to content

Commit 91d24c5

Browse files
committed
Bug fix.
1 parent 3415e26 commit 91d24c5

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

paddle/math/Matrix.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2065,8 +2065,8 @@ class CpuMatrix : public Matrix {
20652065
};
20662066

20672067
class SharedCpuMatrix : public CpuMatrix {
2068-
#ifndef PADDLE_MOBILE_INFERENCE
20692068
public:
2069+
#ifndef PADDLE_MOBILE_INFERENCE
20702070
/* blockNum is number of partitions of the matrix */
20712071
SharedCpuMatrix(int blockNum, size_t height, size_t width, bool trans = false)
20722072
: CpuMatrix(height, width, trans) {

paddle/parameter/Parameter.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,7 @@ void Parameter::setMat(ParameterType pType, int matType) {
202202
}
203203
}
204204
#ifndef PADDLE_MOBILE_INFERENCE
205+
// NOLINTNEXTLINE
205206
else if (matType == MAT_NORMAL_SHARED) {
206207
CHECK_EQ(height * width, bufs_[pType]->getSize());
207208
size_t blockNum = 0;
@@ -263,6 +264,7 @@ void Parameter::setMat(ParameterType pType, int matType) {
263264
mats_[pType] = std::make_shared<SparseAutoGrowRowCpuMatrix>(height, width);
264265
}
265266
#endif
267+
// NOLINTNEXTLINE
266268
else {
267269
LOG(FATAL) << "Unsupported mat type" << matType;
268270
}

0 commit comments

Comments
 (0)