src/transformers/models/deta/modeling_deta.py/DetaPreTrainedModel/_set_gradient_checkpointing
class DetaPreTrainedModel:    def _set_gradient_checkpointing(self, module, value=False):
        if isinstance(module, DetaDecoder):
            module.gradient_checkpointing = value