The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.
ops: delete dead code (#11204)
rattus9d252f3b70c0
diff --git a/comfy/ops.py b/comfy/ops.pyindex 35237c9f7..6f34d50fc 100644--- a/comfy/ops.py+++ b/comfy/ops.py@@ -22,7 +22,6 @@ import comfy.model_managementfrom comfy.cli_args import args, PerformanceFeatureimport comfy.floatimport comfy.rmsnorm-import contextlibimport jsondef run_every_op():@@ -94,13 +93,6 @@ def cast_bias_weight(s, input=None, dtype=None, device=None, bias_dtype=None, ofelse:offload_stream = None- if offload_stream is not None:- wf_context = offload_stream- if hasattr(wf_context, "as_context"):- wf_context = wf_context.as_context(offload_stream)- else:- wf_context = contextlib.nullcontext()-non_blocking = comfy.model_management.device_supports_non_blocking(device)weight_has_function = len(s.weight_function) > 0