Files
HowToSD-ComfyUI-Pt-Wrapper/docs/reference/pt_where.md
T
2025-03-10 14:34:01 -07:00

647 B

Pt Where

Generates a new tensor by selecting values based on a condition tensor.

  • condition_tens (torch.Tensor): Boolean tensor that determines which values are selected.
  • true_tens (torch.Tensor): Values to use where the condition is True.
  • false_tens (torch.Tensor): Values to use where the condition is False.

Input

Name Data type
condition_tens Tensor
true_tens Tensor
false_tens Tensor

Output

Data type
Tensor

Category: PyTorch wrapper - Indexing and Slicing Operations

ComfyUI Data Analysis Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.