diff options
author | AUTOMATIC <16777216c@gmail.com> | 2023-05-10 04:52:45 +0000 |
---|---|---|
committer | AUTOMATIC <16777216c@gmail.com> | 2023-05-10 04:52:45 +0000 |
commit | 762265eab58cdb8f2d6398769bab43d8b8db0075 (patch) | |
tree | 7766901f867d84cf0662b2ae0d5bc55c673a08e8 /modules/sd_hijack_optimizations.py | |
parent | a617d6488275a58da0627b3fed5f53593b2eb8b2 (diff) | |
download | stable-diffusion-webui-gfx803-762265eab58cdb8f2d6398769bab43d8b8db0075.tar.gz stable-diffusion-webui-gfx803-762265eab58cdb8f2d6398769bab43d8b8db0075.tar.bz2 stable-diffusion-webui-gfx803-762265eab58cdb8f2d6398769bab43d8b8db0075.zip |
autofixes from ruff
Diffstat (limited to 'modules/sd_hijack_optimizations.py')
-rw-r--r-- | modules/sd_hijack_optimizations.py | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/modules/sd_hijack_optimizations.py b/modules/sd_hijack_optimizations.py index f10865cd..b623d53d 100644 --- a/modules/sd_hijack_optimizations.py +++ b/modules/sd_hijack_optimizations.py @@ -296,7 +296,6 @@ def sub_quad_attention(q, k, v, q_chunk_size=1024, kv_chunk_size=None, kv_chunk_ if chunk_threshold_bytes is not None and qk_matmul_size_bytes <= chunk_threshold_bytes:
# the big matmul fits into our memory limit; do everything in 1 chunk,
# i.e. send it down the unchunked fast-path
- query_chunk_size = q_tokens
kv_chunk_size = k_tokens
with devices.without_autocast(disable=q.dtype == v.dtype):
|