diff options
author | liamkerr <liamkerr@users.noreply.github.com> | 2022-10-02 14:02:38 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-02 14:02:38 +0000 |
commit | 7308aeefd9d25212398068c1a35f0b879b9ba06f (patch) | |
tree | 60f81d876522c772f85911ec4065ab3f448a8479 /modules/devices.py | |
parent | 3c6a049fc3c6b54ada3736710a7e86663ea7f3d9 (diff) | |
parent | 4e72a1aab6d1b3a8d8c09fadc81843a07c05cc18 (diff) | |
download | stable-diffusion-webui-gfx803-7308aeefd9d25212398068c1a35f0b879b9ba06f.tar.gz stable-diffusion-webui-gfx803-7308aeefd9d25212398068c1a35f0b879b9ba06f.tar.bz2 stable-diffusion-webui-gfx803-7308aeefd9d25212398068c1a35f0b879b9ba06f.zip |
Merge branch 'master' into token_updates
Diffstat (limited to 'modules/devices.py')
-rw-r--r-- | modules/devices.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/modules/devices.py b/modules/devices.py index 07bb2339..ff82f2f6 100644 --- a/modules/devices.py +++ b/modules/devices.py @@ -32,10 +32,9 @@ def enable_tf32(): errors.run(enable_tf32, "Enabling TF32") - device = get_optimal_device() device_codeformer = cpu if has_mps else device - +dtype = torch.float16 def randn(seed, shape): # Pytorch currently doesn't handle setting randomness correctly when the metal backend is used. |