src/transformers/models/vit_hybrid/modeling_vit_hybrid.py/ViTHybridPreTrainedModel/_set_gradient_checkpointing
class ViTHybridPreTrainedModel:    def _set_gradient_checkpointing(self, module: ViTHybridEncoder, value: bool = False) -> None:
        if isinstance(module, ViTHybridEncoder):
            module.gradient_checkpointing = value