提交 ea5be443 编写于 作者: Y Yu Yang 提交者: GitHub

Merge pull request #757 from gangliao/avx_limits

Remove sparse length limits
......@@ -15,15 +15,14 @@ limitations under the License. */
#include "SparseRowMatrix.h"
#include "CpuSparseMatrix.h"
#include <cmath>
#include <algorithm>
#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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册