MCPcopy
hub / github.com/black-forest-labs/flux / unpack

Function unpack

src/flux/sampling.py:356–364  ·  view source on GitHub ↗
(x: Tensor, height: int, width: int)

Source from the content-addressed store, hash-verified

354
355
356def unpack(x: Tensor, height: int, width: int) -> Tensor:
357 return rearrange(
358 x,
359 "b (h w) (c ph pw) -> b c (h ph) (w pw)",
360 h=math.ceil(height / 16),
361 w=math.ceil(width / 16),
362 ph=2,
363 pw=2,
364 )

Callers 8

mainFunction · 0.90
generate_imageMethod · 0.90
mainFunction · 0.90
mainFunction · 0.90
mainFunction · 0.90
mainFunction · 0.90
mainFunction · 0.90
mainFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…