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,
)
| 156 | |
| 157 | |
| 158 | def 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 | |
| 180 | def vcat( |
no test coverage detected