src/transformers/models/graphormer/modeling_graphormer.py/GraphormerPreTrainedModel/_set_gradient_checkpointing
class GraphormerPreTrainedModel:    def _set_gradient_checkpointing(self, module, value=False):
        if isinstance(module, GraphormerModel):
            module.gradient_checkpointing = value