[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
parent
9a9999f8cd
commit
a77b6f8171
2 changed files with 4 additions and 7 deletions
|
|
@ -999,10 +999,7 @@ class SdCppDiffusionBackend:
|
|||
return images, seeds
|
||||
|
||||
def _restart_server_on_cpu_backend(
|
||||
self,
|
||||
state: _SdState,
|
||||
error_text: str,
|
||||
cancel: threading.Event,
|
||||
self, state: _SdState, error_text: str, cancel: threading.Event
|
||||
) -> Optional[SdCppServer]:
|
||||
"""Relaunch this checkpoint's sd-server with ``--backend cpu``; None if that does not apply.
|
||||
|
||||
|
|
|
|||
|
|
@ -541,9 +541,9 @@ def test_ggml_unsupported_op_abort_is_recognised_only_with_both_markers():
|
|||
)
|
||||
assert is_ggml_unsupported_op_abort(abort) is True
|
||||
# The RMS_NORM shape of the same abort (text encoder) counts too.
|
||||
assert is_ggml_unsupported_op_abort(
|
||||
"error: unsupported op 'RMS_NORM'\nggml_abort + 156"
|
||||
) is True
|
||||
assert (
|
||||
is_ggml_unsupported_op_abort("error: unsupported op 'RMS_NORM'\nggml_abort + 156") is True
|
||||
)
|
||||
# Neither marker alone is enough, and an unrelated death is never a match.
|
||||
assert is_ggml_unsupported_op_abort("unsupported op 'MUL_MAT'") is False
|
||||
assert is_ggml_unsupported_op_abort("ggml_abort + 156") is False
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue