src/transformers/models/prophetnet/modeling_prophetnet.py/ProphetNetPreTrainedModel/_set_gradient_checkpointing
class ProphetNetPreTrainedModel:    def _set_gradient_checkpointing(self, module, value=False):
        if isinstance(module, (ProphetNetDecoder, ProphetNetEncoder)):
            module.gradient_checkpointing = value