src/transformers/models/wavlm/modeling_wavlm.py/WavLMPreTrainedModel/_set_gradient_checkpointing
class WavLMPreTrainedModel:    def _set_gradient_checkpointing(self, module, value=False):
        if isinstance(module, (WavLMEncoder, WavLMEncoderStableLayerNorm, WavLMFeatureEncoder)):
            module.gradient_checkpointing = value