src/transformers/models/splinter/modeling_splinter.py/SplinterPreTrainedModel/_set_gradient_checkpointing
class SplinterPreTrainedModel:    def _set_gradient_checkpointing(self, module, value=False):
        if isinstance(module, SplinterEncoder):
            module.gradient_checkpointing = value