Skip to content

Commit 780e268

Browse files
committed
remove unused CHECK in matrix.cpp
1 parent cc7a755 commit 780e268

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

paddle/math/Matrix.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1080,7 +1080,6 @@ void GpuMatrix::maxPoolBackward(Matrix& inputMat,
10801080
size_t channels = outV.getWidth() / outputH / outputW;
10811081
CHECK(imgSizeH * imgSizeW * channels == inputMat.getWidth());
10821082
CHECK(height_ == inputMat.getHeight());
1083-
CHECK(width_ == imgSizeW * imgSizeH * channels);
10841083
CHECK(outGrad.getHeight() == outV.getHeight() &&
10851084
outGrad.getWidth() == outV.getWidth());
10861085

@@ -1259,7 +1258,6 @@ void GpuMatrix::maxPool3DBackward(Matrix& outGrad,
12591258
size_t frameNum = getHeight();
12601259
size_t channels = outGrad.getWidth() / outputD / outputH / outputW;
12611260
CHECK(imgSizeD * imgSizeH * imgSizeW * channels == getWidth());
1262-
CHECK(width_ == imgSizeD * imgSizeH * imgSizeW * channels);
12631261
CHECK(outGrad.getHeight() == maxPoolIdx.getHeight() &&
12641262
outGrad.getWidth() == maxPoolIdx.getWidth());
12651263

0 commit comments

Comments
 (0)