src/transformers/models/deformable_detr/modeling_deformable_detr.py/DeformableDetrPreTrainedModel/_set_gradient_checkpointing
class DeformableDetrPreTrainedModel:    def _set_gradient_checkpointing(self, module, value=False):
        if isinstance(module, DeformableDetrDecoder):
            module.gradient_checkpointing = value