How to use the encoder_outputs embeding to generate a sentence through decoder

Hello, I want to use the encoder_outputs embeding to generate a sentence through decoder. How should I do that? I use bart. Thank you very much.