Skip to content

Commit 6942eb2

Browse files
committed
revert local changes
1 parent 023166a commit 6942eb2

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

paddle/math/RowBuffer.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,7 @@ class RowBuffer {
6060
*/
6161
inline real* get(int row) const {
6262
if (preallocatedBuf_) {
63-
// CHECK_LE((row + 1) * width_ * sizeof(real),
64-
// preallocatedBuf_->getSize());
65-
CHECK_LE((row)*width_ * sizeof(real), preallocatedBuf_->getSize());
63+
CHECK_LE((row + 1) * width_ * sizeof(real), preallocatedBuf_->getSize());
6664
return reinterpret_cast<real*>(preallocatedBuf_->getBuf()) + row * width_;
6765
} else {
6866
CHECK_LE((row + 1) * width_, rowStore_.size());

0 commit comments

Comments
 (0)