src/transformers/models/tapas/modeling_tapas.py/TapasPreTrainedModel/_set_gradient_checkpointing
class TapasPreTrainedModel:    def _set_gradient_checkpointing(self, module, value=False):
        if isinstance(module, TapasEncoder):
            module.gradient_checkpointing = value