src/transformers/models/sew/modeling_sew.py/SEWPreTrainedModel/_set_gradient_checkpointing
class SEWPreTrainedModel:    def _set_gradient_checkpointing(self, module, value=False):
        if isinstance(module, (SEWEncoder, SEWFeatureEncoder)):
            module.gradient_checkpointing = value