MCPcopy Create free account
hub / github.com/Lightricks/ComfyUI-LTXVideo / block_wrap

Method block_wrap

tricks/modules/ltx_model.py:196–205  ·  view source on GitHub ↗
(args)

Source from the content-addressed store, hash-verified

194 if ("double_block", i) in blocks_replace:
195
196 def block_wrap(args):
197 out = {}
198 out["img"] = block(
199 args["img"],
200 context=args["txt"],
201 attention_mask=args["attention_mask"],
202 timestep=args["vec"],
203 pe=args["pe"],
204 )
205 return out
206
207 out = blocks_replace[("double_block", i)](
208 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected