Skip to content

Commit 0eaf9f6

Browse files
committed
Remove sparse length limits
1 parent 4823075 commit 0eaf9f6

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

paddle/math/SparseRowMatrix.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,14 @@ limitations under the License. */
1515
#include "SparseRowMatrix.h"
1616
#include "CpuSparseMatrix.h"
1717

18-
#include <cmath>
1918
#include <algorithm>
2019

2120
#include "paddle/utils/Logging.h"
2221

2322
#include "SIMDFunctions.h"
2423

25-
#include "paddle/utils/Util.h"
2624
#include "paddle/utils/Thread.h"
25+
#include "paddle/utils/Util.h"
2726

2827
P_DEFINE_bool(allow_inefficient_sparse_update,
2928
false,
@@ -34,8 +33,6 @@ namespace paddle {
3433
const unsigned int SparseRowCpuMatrix::kUnusedId_ = -1U;
3534

3635
void SparseRowCpuMatrix::init(size_t height, size_t width) {
37-
// @TODO(yuyang18) Just remove this limit
38-
CHECK(simd::vec_check(width)) << width;
3936
height_ = height;
4037
if (!indexDictHandle_) {
4138
indexDictHandle_.reset(new IndexDict);

0 commit comments

Comments
 (0)