src/transformers/models/xlm_prophetnet/modeling_xlm_prophetnet.py/XLMProphetNetPreTrainedModel/_set_gradient_checkpointing
class XLMProphetNetPreTrainedModel:    def _set_gradient_checkpointing(self, module, value=False):
        if isinstance(module, (XLMProphetNetDecoder, XLMProphetNetEncoder)):
            module.gradient_checkpointing = value