Generate a batch of translations. Args: models (List[~fairseq.models.FairseqModel]): ensemble of models sample (dict): batch prefix_tokens (torch.LongTensor, optional): force decoder to begin with these tokens
(
self,
models,
sample,
prefix_tokens=None,
bos_token=None,
**kwargs
)
source not stored for this graph (policy: none)