mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2025-12-06 10:31:17 -08:00
linting and debugs
This commit is contained in:
parent
42e6df723c
commit
c2c05fcca8
1 changed files with 6 additions and 6 deletions
|
|
@ -185,7 +185,7 @@ def autocast(disable=False):
|
|||
if fp8 and device==cpu:
|
||||
return torch.autocast("cpu", dtype=torch.bfloat16, enabled=True)
|
||||
|
||||
if dtype == torch.float32 and shared.cmd_opts.precision == "full":
|
||||
if dtype == torch.float32:
|
||||
return contextlib.nullcontext()
|
||||
|
||||
if has_xpu() or has_mps() or cuda_no_autocast():
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue