From 1746a9766bcef2b6af51d85ac01a980f1bff156f Mon Sep 17 00:00:00 2001 From: Anton Voronov Date: Mon, 13 Feb 2023 12:16:33 +0000 Subject: [PATCH] removed nnze param from sparse packed constructor --- include/oneapi/dnnl/dnnl.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); }