src/transformers/models/data2vec/modeling_data2vec_audio.py/Data2VecAudioPreTrainedModel/_set_gradient_checkpointing
class Data2VecAudioPreTrainedModel:    def _set_gradient_checkpointing(self, module, value=False):
        if isinstance(module, (Data2VecAudioEncoder, Data2VecAudioFeatureEncoder)):
            module.gradient_checkpointing = value