diff --git a/include/oneapi/dnnl/dnnl.hpp b/include/oneapi/dnnl/dnnl.hpp index ddcb253b672..2f65e4c16ca 100644 --- a/include/oneapi/dnnl/dnnl.hpp +++ b/include/oneapi/dnnl/dnnl.hpp @@ -2634,8 +2634,8 @@ struct memory : public handle { allow_empty); } - static sparse_desc packed(dim nnze, bool allow_empty = false) { - return sparse_desc(dnnl_sparse_encoding_packed, {}, nnze, {}, {}, + static sparse_desc packed(bool allow_empty = false) { + return sparse_desc(dnnl_sparse_encoding_packed, {}, -1, {}, {}, {}, {}, allow_empty); }