src/transformers/models/dpt/modeling_dpt.py/DPTPreTrainedModel/_set_gradient_checkpointing
class DPTPreTrainedModel:    def _set_gradient_checkpointing(self, module, value=False):
        if isinstance(module, DPTViTEncoder):
            module.gradient_checkpointing = value