Commit c2c05fcc authored by Kohaku-Blueleaf's avatar Kohaku-Blueleaf

linting and debugs

parent 42e6df72
......@@ -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():
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment