> ## Documentation Index
> Fetch the complete documentation index at: https://docs.comfy.org/llms.txt
> Use this file to discover all available pages before exploring further.

# LatentBatch - ComfyUI Built-in Node Documentation

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

LatentBatch 节点旨在将两组潜在样本合并为单个批次，在拼接前可能会调整其中一组样本的尺寸以匹配另一组。此操作有助于将不同的潜在表示组合起来，用于后续处理或生成任务。

## 输入

| 参数        | 描述                                        | 数据类型     |
| --------- | ----------------------------------------- | -------- |
| `Latent1` | 要合并的第一组潜在样本。它在确定合并后批次的最终形状方面起着关键作用。       | `LATENT` |
| `Latent2` | 要合并的第二组潜在样本。如果其尺寸与第一组不同，则会调整大小以确保合并前的兼容性。 | `LATENT` |

## 输出

| 参数       | 描述                          | 数据类型     |
| -------- | --------------------------- | -------- |
| `latent` | 合并后的潜在样本集，现已组合成单个批次以供进一步处理。 | `LATENT` |

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