WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit 9d252f3

Browse files
authored
ops: delete dead code (#11204)
This became dead code in #11069
1 parent b9fb542 commit 9d252f3

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

comfy/ops.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
from comfy.cli_args import args, PerformanceFeature
2323
import comfy.float
2424
import comfy.rmsnorm
25-
import contextlib
2625
import json
2726

2827
def run_every_op():
@@ -94,13 +93,6 @@ def cast_bias_weight(s, input=None, dtype=None, device=None, bias_dtype=None, of
9493
else:
9594
offload_stream = None
9695

97-
if offload_stream is not None:
98-
wf_context = offload_stream
99-
if hasattr(wf_context, "as_context"):
100-
wf_context = wf_context.as_context(offload_stream)
101-
else:
102-
wf_context = contextlib.nullcontext()
103-
10496
non_blocking = comfy.model_management.device_supports_non_blocking(device)
10597

10698
weight_has_function = len(s.weight_function) > 0

0 commit comments

Comments
 (0)