mirror of
https://github.com/lllyasviel/stable-diffusion-webui-forge.git
synced 2026-08-06 18:20:40 -05:00
Fix typo "MasOS" -> "macOS" If MPS is available and PyTorch is an earlier version than 1.13: * Monkey patch torch.Tensor.to to ensure all tensors sent to MPS are contiguous * Monkey patch torch.nn.functional.layer_norm to ensure input tensor is contiguous (required for this program to work with MPS on unmodified PyTorch 1.12.1)
3.5 KiB
3.5 KiB