src/transformers/models/hubert/modeling_hubert.py/HubertPreTrainedModel/_set_gradient_checkpointing
class HubertPreTrainedModel:    def _set_gradient_checkpointing(self, module, value=False):
        if isinstance(module, (HubertEncoder, HubertEncoderStableLayerNorm)):
            module.gradient_checkpointing = value