Skip to content

Commit

Permalink
fix the broken line for AUTOMATIC1111#10990
Browse files Browse the repository at this point in the history
  • Loading branch information
AUTOMATIC1111 authored and lsjspl committed Jul 11, 2023
1 parent ea81dfd commit b3f5b61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/sd_hijack_optimizations.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class SdOptimizationXformers(SdOptimization):
priority = 100

def is_available(self):
return shared.cmd_opts.force_enable_xformers or (shared.xformers_available and torch.cuda.is_available() and (6, 0) <= torch.cuda.get_device_capability(shared.device) <= (9, 0)
return shared.cmd_opts.force_enable_xformers or (shared.xformers_available and torch.cuda.is_available() and (6, 0) <= torch.cuda.get_device_capability(shared.device) <= (9, 0))

def apply(self):
ldm.modules.attention.CrossAttention.forward = xformers_attention_forward
Expand Down

0 comments on commit b3f5b61

Please sign in to comment.