def doc2vector(model, samples):
    """Infer vectors for samples

    Args:
        model: The instance to use to infer vectors vectors as :class:`gensim.models.Doc2Vec`.
        samples: The samples as :class:`list`.

    Returns:
        The :class:`list` of inferred vectors.
    """
    return [model.infer_vector(sample) for sample in samples]