diff options
author | discus0434 <66945496+discus0434@users.noreply.github.com> | 2022-10-19 15:48:13 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-19 15:48:13 +0000 |
commit | 365d4b1650b77c8f8aedf4a294c2b9e47d665f04 (patch) | |
tree | 90c719f4b176e8676ea228237f354b73a3d67147 /modules/sd_hijack_optimizations.py | |
parent | 3770b8d2fa62066d472a04739c7b84bce8538832 (diff) | |
parent | f510a2277ee3641564c13841b04b50293384526f (diff) | |
download | stable-diffusion-webui-gfx803-365d4b1650b77c8f8aedf4a294c2b9e47d665f04.tar.gz stable-diffusion-webui-gfx803-365d4b1650b77c8f8aedf4a294c2b9e47d665f04.tar.bz2 stable-diffusion-webui-gfx803-365d4b1650b77c8f8aedf4a294c2b9e47d665f04.zip |
Merge branch 'AUTOMATIC1111:master' into master
Diffstat (limited to 'modules/sd_hijack_optimizations.py')
-rw-r--r-- | modules/sd_hijack_optimizations.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/sd_hijack_optimizations.py b/modules/sd_hijack_optimizations.py index a3345bb9..98123fbf 100644 --- a/modules/sd_hijack_optimizations.py +++ b/modules/sd_hijack_optimizations.py @@ -181,7 +181,7 @@ def einsum_op_cuda(q, k, v): mem_free_torch = mem_reserved - mem_active
mem_free_total = mem_free_cuda + mem_free_torch
# Divide factor of safety as there's copying and fragmentation
- return self.einsum_op_tensor_mem(q, k, v, mem_free_total / 3.3 / (1 << 20))
+ return einsum_op_tensor_mem(q, k, v, mem_free_total / 3.3 / (1 << 20))
def einsum_op(q, k, v):
if q.device.type == 'cuda':
|