src/transformers/models/timesformer/modeling_timesformer.py/TimesformerPreTrainedModel/_set_gradient_checkpointing
class TimesformerPreTrainedModel:    def _set_gradient_checkpointing(self, module, value=False):
        if isinstance(module, TimesformerEncoder):
            module.gradient_checkpointing = value