Add code to get dense matrix from tensor operator.