The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.
Fix xpu function not implemented. (#9026)
comfyanonymous39dda1d40d1f
diff --git a/comfy/model_management.py b/comfy/model_management.pyindex 346673895..746b063ed 100644--- a/comfy/model_management.py+++ b/comfy/model_management.py@@ -186,10 +186,7 @@ def get_total_memory(dev=None, torch_total_too=False):elif is_intel_xpu():stats = torch.xpu.memory_stats(dev)mem_reserved = stats['reserved_bytes.all.current']- if torch_version_numeric < (2, 6):- mem_total_xpu = torch.xpu.get_device_properties(dev).total_memory- else:- _, mem_total_xpu = torch.xpu.mem_get_info(dev)+ mem_total_xpu = torch.xpu.get_device_properties(dev).total_memorymem_total_torch = mem_reservedmem_total = mem_total_xpuelif is_ascend_npu():