> ## 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.

# LatentBatch - ComfyUI Built-in Node Documentation

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

此节点设计用于将两组潜在样本合并为一个单一的批量，可能在拼接前调整其中一组的大小以匹配另一组的尺寸。这个操作便于将不同的潜在表示组合起来进行进一步的处理或生成任务。

## 输入

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

## 输出

| 参数名称     | 数据类型     | 作用                             |
| -------- | -------- | ------------------------------ |
| `latent` | `LATENT` | 合并后的潜在样本集，现在组合成一个单一的批量以供进一步处理。 |
