src/transformers/models/transfo_xl/modeling_transfo_xl.py/TransfoXLModel/_prune_heads
class TransfoXLModel:    def _prune_heads(self, heads):
        logger.info("Head pruning is not implemented for Transformer-XL model")
        pass