src/transformers/models/detr/modeling_detr.py/DetrPreTrainedModel/_set_gradient_checkpointing
class DetrPreTrainedModel:    def _set_gradient_checkpointing(self, module, value=False):
        if isinstance(module, DetrDecoder):
            module.gradient_checkpointing = value