22 lines
503 B
Markdown
22 lines
503 B
Markdown
# Pt Rand
|
|
Creates a PyTorch tensor with values sampled from a uniform distribution
|
|
using the size entered in the text field.
|
|
For example, if you want to create a 4D tensor of batch size=2, channel=3, height=96, width=32, enter:
|
|
[2,3,96,32]
|
|
|
|
## Input
|
|
| Name | Data type |
|
|
|---|---|
|
|
| size | String |
|
|
| data_type | |
|
|
|
|
## Output
|
|
| Data type |
|
|
|---|
|
|
| Tensor |
|
|
|
|
<HR>
|
|
Category: PyTorch wrapper - Tensor creation
|
|
|
|
ComfyUI Data Analysis Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
|