    def generate_mt_inputs(self, dataset):
        """Process dataset to generate mt model inputs"""
        return [self.mt.encode_source(sample) for sample in dataset]
Process dataset to generate mt model inputs
examples/speech_to_speech/benchmarking/core.py