src/transformers/models/clap/modeling_clap.py/ClapPreTrainedModel/_set_gradient_checkpointing
class ClapPreTrainedModel:    def _set_gradient_checkpointing(self, module, value=False):
        if isinstance(module, ClapTextEncoder):
            module.gradient_checkpointing = value