pub fn sparse_to_dense(
sparse: &SparseVector,
dims: usize,
) -> Result<Array1<f32>>Expand description
A sparse embedding as a dense array of dims elements.
Every index must be inside dims; a term id past the end means the caller’s dims does
not match the model’s vocabulary.