From 780e26826df8f81b47c9209a17f8bff2d932e5e8 Mon Sep 17 00:00:00 2001 From: Luo Tao Date: Mon, 18 Sep 2017 21:24:17 +0800 Subject: [PATCH] remove unused CHECK in matrix.cpp --- paddle/math/Matrix.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/paddle/math/Matrix.cpp b/paddle/math/Matrix.cpp index 83c06a04c6..0023b4d0f5 100644 --- a/paddle/math/Matrix.cpp +++ b/paddle/math/Matrix.cpp @@ -1080,7 +1080,6 @@ void GpuMatrix::maxPoolBackward(Matrix& inputMat, size_t channels = outV.getWidth() / outputH / outputW; CHECK(imgSizeH * imgSizeW * channels == inputMat.getWidth()); CHECK(height_ == inputMat.getHeight()); - CHECK(width_ == imgSizeW * imgSizeH * channels); CHECK(outGrad.getHeight() == outV.getHeight() && outGrad.getWidth() == outV.getWidth()); @@ -1259,7 +1258,6 @@ void GpuMatrix::maxPool3DBackward(Matrix& outGrad, size_t frameNum = getHeight(); size_t channels = outGrad.getWidth() / outputD / outputH / outputW; CHECK(imgSizeD * imgSizeH * imgSizeW * channels == getWidth()); - CHECK(width_ == imgSizeD * imgSizeH * imgSizeW * channels); CHECK(outGrad.getHeight() == maxPoolIdx.getHeight() && outGrad.getWidth() == maxPoolIdx.getWidth()); -- GitLab