From 6942eb2ce4fb0f76810c5d0891e0655382594ab1 Mon Sep 17 00:00:00 2001 From: typhoonzero Date: Mon, 23 Oct 2017 16:45:31 +0800 Subject: [PATCH] revert local changes --- paddle/math/RowBuffer.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/paddle/math/RowBuffer.h b/paddle/math/RowBuffer.h index 14766d85db..9ef5b89680 100644 --- a/paddle/math/RowBuffer.h +++ b/paddle/math/RowBuffer.h @@ -60,9 +60,7 @@ public: */ inline real* get(int row) const { if (preallocatedBuf_) { - // CHECK_LE((row + 1) * width_ * sizeof(real), - // preallocatedBuf_->getSize()); - CHECK_LE((row)*width_ * sizeof(real), preallocatedBuf_->getSize()); + CHECK_LE((row + 1) * width_ * sizeof(real), preallocatedBuf_->getSize()); return reinterpret_cast(preallocatedBuf_->getBuf()) + row * width_; } else { CHECK_LE((row + 1) * width_, rowStore_.size()); -- GitLab