23 lines
449 B
Markdown
23 lines
449 B
Markdown
# Pt Bool Create
|
|
Creates a PyTorch tensor of dtype bool from True or False values entered as a list in the text field.
|
|
For example, entering:
|
|
```
|
|
[True, False, False]
|
|
```
|
|
will create a 1D boolean tensor.
|
|
|
|
## Input
|
|
| Name | Data type |
|
|
|---|---|
|
|
| data | String |
|
|
|
|
## Output
|
|
| Data type |
|
|
|---|
|
|
| Tensor |
|
|
|
|
<HR>
|
|
Category: PyTorch wrapper - Tensor creation
|
|
|
|
ComfyUI Data Analysis Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
|