src/transformers/models/efficientnet/modeling_efficientnet.py/EfficientNetPreTrainedModel/_set_gradient_checkpointing
class EfficientNetPreTrainedModel:    def _set_gradient_checkpointing(self, module, value=False):
        if isinstance(module, EfficientNetBlock):
            module.gradient_checkpointing = value