> ## Documentation Index
> Fetch the complete documentation index at: https://dripart-docs-recommend-assets-api.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# LatentConcat - ComfyUI Built-in Node Documentation

> Complete documentation for the LatentConcat node in ComfyUI. Learn its inputs, outputs, parameters and usage.

> 本文档由 AI 生成。如果您发现任何错误或有改进建议，欢迎贡献！ [在 GitHub 上编辑](https://github.com/Comfy-Org/embedded-docs/blob/main/comfyui_embedded_docs/docs/LatentConcat/zh.md)

LatentConcat 节点沿着指定维度合并两个潜在样本。它接收两个潜在输入，并沿着选定的轴（x、y 或 t 维度）将它们连接在一起。在执行连接操作之前，该节点会自动调整第二个输入的批次大小以匹配第一个输入。

## 输入参数

| 参数名        | 数据类型   | 必填 | 取值范围                                                            | 描述                                                                        |
| ---------- | ------ | -- | --------------------------------------------------------------- | ------------------------------------------------------------------------- |
| `samples1` | LATENT | 是  | -                                                               | 要连接的第一个潜在样本                                                               |
| `samples2` | LATENT | 是  | -                                                               | 要连接的第二个潜在样本                                                               |
| `dim`      | COMBO  | 是  | `"x"`<br />`"-x"`<br />`"y"`<br />`"-y"`<br />`"t"`<br />`"-t"` | 连接潜在样本所沿的维度。正值表示将 samples1 连接在 samples2 之前，负值表示将 samples2 连接在 samples1 之前 |

**注意：** 在连接操作之前，第二个潜在样本 (`samples2`) 会自动调整以匹配第一个潜在样本 (`samples1`) 的批次大小。

## 输出结果

| 输出名称     | 数据类型   | 描述                       |
| -------- | ------ | ------------------------ |
| `output` | LATENT | 沿着指定维度合并两个输入样本后得到的连接潜在样本 |
