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

Function hcat

flowmap/visualization/layout.py:158–177  ·  view source on GitHub ↗

Shorthand for a horizontal linear concatenation.

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

Source from the content-addressed store, hash-verified

156
157
158def hcat(
159 *images: Iterable[Float[Tensor, "channel _ _"]],
160 align: Literal["start", "center", "end", "top", "bottom"] = "start",
161 gap: int = 8,
162 gap_color: Color = 1,
163):
164 """Shorthand for a horizontal linear concatenation."""
165 return cat(
166 "horizontal",
167 *images,
168 align={
169 "start": "start",
170 "center": "center",
171 "end": "end",
172 "top": "start",
173 "bottom": "end",
174 }[align],
175 gap=gap,
176 gap_color=gap_color,
177 )
178
179
180def vcat(

Callers 2

flow_with_keyFunction · 0.85
visualizeMethod · 0.85

Calls 1

catFunction · 0.85

Tested by

no test coverage detected