MCPcopy
hub / github.com/lllyasviel/Fooocus / clone_cond

Function clone_cond

modules/default_pipeline.py:163–177  ·  view source on GitHub ↗
(conds)

Source from the content-addressed store, hash-verified

161@torch.no_grad()
162@torch.inference_mode()
163def clone_cond(conds):
164 results = []
165
166 for c, p in conds:
167 p = p["pooled_output"]
168
169 if isinstance(c, torch.Tensor):
170 c = c.clone()
171
172 if isinstance(p, torch.Tensor):
173 p = p.clone()
174
175 results.append([c, {"pooled_output": p}])
176
177 return results
178
179
180@torch.no_grad()

Callers

nothing calls this directly

Calls 2

cloneMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected