src/transformers/models/conditional_detr/modeling_conditional_detr.py/ConditionalDetrPreTrainedModel/_set_gradient_checkpointing
class ConditionalDetrPreTrainedModel:    def _set_gradient_checkpointing(self, module, value=False):
        if isinstance(module, ConditionalDetrDecoder):
            module.gradient_checkpointing = value