mirror of
https://github.com/lllyasviel/stable-diffusion-webui-forge.git
synced 2026-02-21 15:23:58 +00:00
elegant patcher
This commit is contained in:
@@ -46,3 +46,6 @@ class DiffusersModelPatcher:
|
||||
models=[self.patcher],
|
||||
memory_required=inference_memory
|
||||
)
|
||||
|
||||
def move_tensor_to_current_device(self, x):
|
||||
return x.to(device=self.patcher.current_device, dtype=self.dtype)
|
||||
|
||||
Reference in New Issue
Block a user