src/transformers/models/trajectory_transformer/modeling_trajectory_transformer.py/TrajectoryTransformerPreTrainedModel/_set_gradient_checkpointing
class TrajectoryTransformerPreTrainedModel:    def _set_gradient_checkpointing(self, module, value=False):
        if isinstance(module, TrajectoryTransformerModel):
            module.gradient_checkpointing = value