src/transformers/models/sew_d/modeling_sew_d.py/SEWDPreTrainedModel/_set_gradient_checkpointing
class SEWDPreTrainedModel:    def _set_gradient_checkpointing(self, module, value=False):
        if isinstance(module, SEWDTransformerEncoder):
            module.gradient_checkpointing = value