examples/research_projects/onnx/summarization/bart_onnx/generation_onnx.py/BARTGenerator/_encoder_forward
class BARTGenerator:    def _encoder_forward(self, input_ids, attention_mask):
        return self.encoder(input_ids, attention_mask)[0]