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

# LatentCutToBatch - ComfyUI Built-in Node Documentation

> Complete documentation for the LatentCutToBatch 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/LatentCutToBatch/zh.md)

LatentCutToBatch 节点接收一个潜在表示，并沿着指定维度将其分割成多个切片。这些切片随后被堆叠到一个新的批次维度中，从而有效地将单个潜在样本转换为一批较小的潜在样本。这对于独立处理潜在空间的不同部分非常有用。

## 输入参数

| 参数名          | 数据类型   | 必填 | 取值范围                        | 描述                                             |
| ------------ | ------ | -- | --------------------------- | ---------------------------------------------- |
| `samples`    | LATENT | 是  | -                           | 待分割和批处理的潜在表示。                                  |
| `dim`        | COMBO  | 是  | `"t"`<br />`"x"`<br />`"y"` | 切割潜在样本所沿的维度。`"t"` 指时间维度，`"x"` 指宽度，`"y"` 指高度。   |
| `slice_size` | INT    | 是  | 1 到 16384                   | 从指定维度切割的每个切片的大小。如果维度的大小不能被此值整除，余数将被丢弃。(默认值: 1) |

## 输出结果

| 输出名称      | 数据类型   | 描述                    |
| --------- | ------ | --------------------- |
| `samples` | LATENT | 处理后的潜在批次，包含切片并堆叠后的样本。 |
