aboutsummaryrefslogtreecommitdiff
path: root/modules/sd_hijack_inpainting.py
diff options
context:
space:
mode:
authorbrkirch <brkirch@users.noreply.github.com>2022-11-17 03:52:17 -0500
committerbrkirch <brkirch@users.noreply.github.com>2022-11-21 02:07:19 -0500
commite247b7400a592c0a19c197cd080aeec38ee02b68 (patch)
tree1f76c6ed9f55b2ad362b2eb68586dbd437c31e7c /modules/sd_hijack_inpainting.py
parenta5106a7cdc24153332e4eb1d28e66ea1d7f1ef79 (diff)
Add fixes for PyTorch 1.12.1
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)
Diffstat (limited to 'modules/sd_hijack_inpainting.py')
0 files changed, 0 insertions, 0 deletions