aboutsummaryrefslogtreecommitdiff
path: root/modules/devices.py
diff options
context:
space:
mode:
authord8ahazard <d8ahazard@gmail.com>2022-10-02 07:56:22 -0500
committerGitHub <noreply@github.com>2022-10-02 07:56:22 -0500
commit5d26ba2b4b84b64d82150ae70495f928b3b0b116 (patch)
tree71cb73ba018dab302ea1dfa8c3f368137106a6af /modules/devices.py
parent8deae077004f0332ca607fc3a5d568b1a4705bec (diff)
parent5f561ee95dcb09d92ea67bab5561dced93fe3d00 (diff)
Merge branch 'master' into ScuNET
Diffstat (limited to 'modules/devices.py')
-rw-r--r--modules/devices.py3
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.