added missing const to lambda in DenseTensor constructor