```  
SDPA should be as fast and memory efficient as `xFormers`; check the [benchmark](#benchmark) for more details.  
In some cases - such as making the pipeline more deterministic or converting it to other formats - it may be helpful to use the vanilla attention processor, [`~models.attention_processor.AttnProcessor`]. To revert to [`~models.attention_processor.AttnProcessor`], call the [`~UNet2DConditionModel.set_default_attn_processor`] function on the pipeline:  
```diff
import torch