644 B
644 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 isTrue.false_tens(torch.Tensor): Values to use where the condition isFalse.
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 Pt Wrapper Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.