From 0eaf9f64e63315bc3e6735c5ac4349cb6e50b68a Mon Sep 17 00:00:00 2001 From: liaogang Date: Wed, 7 Dec 2016 15:26:15 +0800 Subject: [PATCH] Remove sparse length limits --- paddle/math/SparseRowMatrix.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/paddle/math/SparseRowMatrix.cpp b/paddle/math/SparseRowMatrix.cpp index eefaf4b71f4..100827e321e 100644 --- a/paddle/math/SparseRowMatrix.cpp +++ b/paddle/math/SparseRowMatrix.cpp @@ -15,15 +15,14 @@ limitations under the License. */ #include "SparseRowMatrix.h" #include "CpuSparseMatrix.h" -#include #include #include "paddle/utils/Logging.h" #include "SIMDFunctions.h" -#include "paddle/utils/Util.h" #include "paddle/utils/Thread.h" +#include "paddle/utils/Util.h" P_DEFINE_bool(allow_inefficient_sparse_update, false, @@ -34,8 +33,6 @@ namespace paddle { const unsigned int SparseRowCpuMatrix::kUnusedId_ = -1U; void SparseRowCpuMatrix::init(size_t height, size_t width) { - // @TODO(yuyang18) Just remove this limit - CHECK(simd::vec_check(width)) << width; height_ = height; if (!indexDictHandle_) { indexDictHandle_.reset(new IndexDict); -- GitLab