src/transformers/models/videomae/modeling_videomae.py/VideoMAEPreTrainedModel/_set_gradient_checkpointing
class VideoMAEPreTrainedModel:    def _set_gradient_checkpointing(self, module, value=False):
        if isinstance(module, VideoMAEEncoder):
            module.gradient_checkpointing = value