We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 023166a commit 6942eb2Copy full SHA for 6942eb2
paddle/math/RowBuffer.h
@@ -60,9 +60,7 @@ class RowBuffer {
60
*/
61
inline real* get(int row) const {
62
if (preallocatedBuf_) {
63
- // CHECK_LE((row + 1) * width_ * sizeof(real),
64
- // preallocatedBuf_->getSize());
65
- CHECK_LE((row)*width_ * sizeof(real), preallocatedBuf_->getSize());
+ CHECK_LE((row + 1) * width_ * sizeof(real), preallocatedBuf_->getSize());
66
return reinterpret_cast<real*>(preallocatedBuf_->getBuf()) + row * width_;
67
} else {
68
CHECK_LE((row + 1) * width_, rowStore_.size());
0 commit comments