From ea7dd7c92590116d69e3244b8718012fd0d6b68d Mon Sep 17 00:00:00 2001 From: Yu Yang Date: Tue, 13 Dec 2016 22:48:32 +0800 Subject: [PATCH] Fix logic error before --- paddle/math/SparseRowMatrix.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/paddle/math/SparseRowMatrix.h b/paddle/math/SparseRowMatrix.h index 8532bca879d..dd4d85611d6 100644 --- a/paddle/math/SparseRowMatrix.h +++ b/paddle/math/SparseRowMatrix.h @@ -188,10 +188,9 @@ protected: << ") rows are used for sparse " << "update, which is not efficient. Considering not use " << "sparse_update or set --allow_inefficient_sparse_update=true"; - - } else { - CHECK_LE(localIndices_->size(), buf_->getRowCount()); } + } else { + CHECK_LE(localIndices_->size(), buf_->getRowCount()); } } -- GitLab