src/transformers/models/convbert/modeling_convbert.py/ConvBertPreTrainedModel/_set_gradient_checkpointing
class ConvBertPreTrainedModel:    def _set_gradient_checkpointing(self, module, value=False):
        if isinstance(module, ConvBertEncoder):
            module.gradient_checkpointing = value