src/transformers/models/data2vec/modeling_data2vec_vision.py/Data2VecVisionPreTrainedModel/_set_gradient_checkpointing
class Data2VecVisionPreTrainedModel:    def _set_gradient_checkpointing(self, module, value=False):
        if isinstance(module, Data2VecVisionEncoder):
            module.gradient_checkpointing = value