Merge branch 'fix-AttributeError-module-'torch'-has-no-attribute-'mps'' of https://github.com/KarryCharon/ComfyUI

This commit is contained in:
comfyanonymous 2023-07-20 00:34:54 -04:00
commit 4760c29380
1 changed files with 1 additions and 0 deletions

View File

@ -49,6 +49,7 @@ except:
try:
if torch.backends.mps.is_available():
cpu_state = CPUState.MPS
import torch.mps
except:
pass