Added Pt Arange and Pt Linspace nodes.

This commit is contained in:
HowToSD
2025-03-01 12:50:55 -08:00
parent 1c4de170f9
commit 3bae9b59ff
13 changed files with 441 additions and 1 deletions
+2
View File
@@ -123,7 +123,9 @@
## Miscellaneous
| Node | Description |
| --- | --- |
| [Pt Arange](pt_arange.md) | Creates a PyTorch tensor using `torch.arange` with the specified start, end, and step values. |
| [Pt Flatten](pt_flatten.md) | Flattens a PyTorch tensor into a 1D tensor. |
| [Pt Linspace](pt_linspace.md) | Creates a PyTorch tensor using `torch.arange` with the specified start, end, and steps values. |
## Numpy
| Node | Description |
| --- | --- |
+25
View File
@@ -0,0 +1,25 @@
# Pt Arange
Creates a PyTorch tensor using `torch.arange` with the specified start, end, and step values.
The values are parsed from string inputs and converted to numeric types. This allows users to specify
tensor range values in text fields. The function also ensures proper dtype selection.
Category: PyTorch wrapper - Tensor creation
## Input
| Name | Data type |
|---|---|
| start | String |
| end | String |
| step | String |
| data_type | |
## Output
| Data type |
|---|
| Tensor |
<HR>
Category: Miscellaneous
ComfyUI Data Analysis Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
+25
View File
@@ -0,0 +1,25 @@
# Pt Linspace
Creates a PyTorch tensor using `torch.arange` with the specified start, end, and steps values.
The start and end values are parsed from string inputs and converted to a float.
The steps value is converted to an int.
Category: PyTorch wrapper - Tensor creation
## Input
| Name | Data type |
|---|---|
| start | String |
| end | String |
| steps | String |
| data_type | |
## Output
| Data type |
|---|
| Tensor |
<HR>
Category: Miscellaneous
ComfyUI Data Analysis Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.