src/transformers/models/vit_mae/modeling_vit_mae.py/ViTMAEPreTrainedModel/_set_gradient_checkpointing
class ViTMAEPreTrainedModel:    def _set_gradient_checkpointing(self, module, value=False):
        if isinstance(module, ViTMAEEncoder):
            module.gradient_checkpointing = value