提交 0eaf9f64 编写于 作者: L liaogang

Remove sparse length limits

上级 4823075f
...@@ -15,15 +15,14 @@ limitations under the License. */ ...@@ -15,15 +15,14 @@ limitations under the License. */
#include "SparseRowMatrix.h" #include "SparseRowMatrix.h"
#include "CpuSparseMatrix.h" #include "CpuSparseMatrix.h"
#include <cmath>
#include <algorithm> #include <algorithm>
#include "paddle/utils/Logging.h" #include "paddle/utils/Logging.h"
#include "SIMDFunctions.h" #include "SIMDFunctions.h"
#include "paddle/utils/Util.h"
#include "paddle/utils/Thread.h" #include "paddle/utils/Thread.h"
#include "paddle/utils/Util.h"
P_DEFINE_bool(allow_inefficient_sparse_update, P_DEFINE_bool(allow_inefficient_sparse_update,
false, false,
...@@ -34,8 +33,6 @@ namespace paddle { ...@@ -34,8 +33,6 @@ namespace paddle {
const unsigned int SparseRowCpuMatrix::kUnusedId_ = -1U; const unsigned int SparseRowCpuMatrix::kUnusedId_ = -1U;
void SparseRowCpuMatrix::init(size_t height, size_t width) { void SparseRowCpuMatrix::init(size_t height, size_t width) {
// @TODO(yuyang18) Just remove this limit
CHECK(simd::vec_check(width)) << width;
height_ = height; height_ = height;
if (!indexDictHandle_) { if (!indexDictHandle_) {
indexDictHandle_.reset(new IndexDict); indexDictHandle_.reset(new IndexDict);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册