MCPcopy Create free account
hub / github.com/dcharatan/flowmap / vcat

Function vcat

flowmap/visualization/layout.py:180–199  ·  view source on GitHub ↗

Shorthand for a horizontal linear concatenation.

(
    *images: Iterable[Float[Tensor, "channel _ _"]],
    align: Literal["start", "center", "end", "left", "right"] = "start",
    gap: int = 8,
    gap_color: Color = 1,
)

Source from the content-addressed store, hash-verified

178
179
180def vcat(
181 *images: Iterable[Float[Tensor, "channel _ _"]],
182 align: Literal["start", "center", "end", "left", "right"] = "start",
183 gap: int = 8,
184 gap_color: Color = 1,
185):
186 """Shorthand for a horizontal linear concatenation."""
187 return cat(
188 "vertical",
189 *images,
190 align={
191 "start": "start",
192 "center": "center",
193 "end": "end",
194 "left": "start",
195 "right": "end",
196 }[align],
197 gap=gap,
198 gap_color=gap_color,
199 )
200
201
202def add_border(

Callers 2

add_labelFunction · 0.85
visualizeMethod · 0.85

Calls 1

catFunction · 0.85

Tested by

no test coverage detected