diff options
author | FNSpd <125805478+FNSpd@users.noreply.github.com> | 2023-03-24 19:08:30 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-24 19:08:30 +0000 |
commit | a9eab236d7e8afa4d6205127904a385b2c43bb24 (patch) | |
tree | d20dc72e4ae28b804524c1ad02fb24f24d55a3fc /modules | |
parent | 280ed8f00fde0ece026339acdd42888ac4dc3167 (diff) | |
download | stable-diffusion-webui-gfx803-a9eab236d7e8afa4d6205127904a385b2c43bb24.tar.gz stable-diffusion-webui-gfx803-a9eab236d7e8afa4d6205127904a385b2c43bb24.tar.bz2 stable-diffusion-webui-gfx803-a9eab236d7e8afa4d6205127904a385b2c43bb24.zip |
Update devices.py
Diffstat (limited to 'modules')
-rw-r--r-- | modules/devices.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/devices.py b/modules/devices.py index 6c6c7233..52c3e7cd 100644 --- a/modules/devices.py +++ b/modules/devices.py @@ -110,7 +110,7 @@ def autocast(disable=False): if disable: return contextlib.nullcontext() - if dtype == torch.float32 or shared.cmd_opts.precision == "full" or shared.cmd_opts.upcast_sampling: + if dtype == torch.float32 or shared.cmd_opts.precision == "full": return contextlib.nullcontext() return torch.autocast("cuda") |