mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-01-12 07:10:52 +08:00
Disable this lint warning
This commit is contained in:
parent
1980c5f236
commit
dbc2a4ba29
@ -987,7 +987,7 @@ def soft_empty_cache(force=False):
|
||||
if cpu_state == CPUState.MPS:
|
||||
torch.mps.empty_cache()
|
||||
elif is_intel_xpu():
|
||||
torch.xpu.empty_cache()
|
||||
torch.xpu.empty_cache() # pylint: disable=no-member
|
||||
elif torch.cuda.is_available():
|
||||
if force or is_nvidia(): # This seems to make things worse on ROCm so I only do it for cuda
|
||||
torch.cuda.empty_cache()
|
||||
|
||||
Loading…
Reference in New Issue
Block a user