I'm getting some strange results when I call countstored on SparseMatrixCSC tensors. This came up as I was doing sanity checking on some benchmarks.
A =Tensor(SparseMatrixCSC(sprand(5, 5, .5)));
B =Tensor(SparseMatrixCSC(sprand(5, 5, .5)));
C =Tensor(SparseMatrixCSC(sprand(5, 5, .5)));
D = Tensor(Dense(Sparse(Element(0.0))))
@finch begin
D.=0;
for j=_,i=_
D[i,j] = (A[i,j] + B[i,j])* C[i,j]
end
end
println(countstored(D))
println(D)
Despite D being non-empty, it's giving a countstored of 0.
Hey All,
I'm getting some strange results when I call countstored on SparseMatrixCSC tensors. This came up as I was doing sanity checking on some benchmarks.
Despite D being non-empty, it's giving a countstored of 0.