src/transformers/models/roc_bert/modeling_roc_bert.py/RoCBertPreTrainedModel/_set_gradient_checkpointing
class RoCBertPreTrainedModel:    def _set_gradient_checkpointing(self, module, value=False):
        if isinstance(module, RoCBertEncoder):
            module.gradient_checkpointing = value