src/transformers/models/regnet/modeling_regnet.py/RegNetPreTrainedModel/_set_gradient_checkpointing
class RegNetPreTrainedModel:    def _set_gradient_checkpointing(self, module, value=False):
        if isinstance(module, RegNetModel):
            module.gradient_checkpointing = value