Added various activation function nodes and chained model node.

This commit is contained in:
HowToSD
2025-03-14 19:12:34 -07:00
parent 8fbecdfba9
commit d5a14828df
163 changed files with 1378 additions and 128 deletions
+33
View File
@@ -3,6 +3,7 @@ from typing import Dict, Type, TypeVar
from .modules.pytorch_wrapper.pt_abs import PtAbs
from .modules.pytorch_wrapper.pt_acos import PtAcos
from .modules.pytorch_wrapper.pt_add import PtAdd
from .modules.pytorch_wrapper.pt_apply_function import PtApplyFunction
from .modules.pytorch_wrapper.pt_arange import PtArange
from .modules.pytorch_wrapper.pt_argmax import PtArgmax
from .modules.pytorch_wrapper.pt_argmin import PtArgmin
@@ -111,6 +112,16 @@ from .modules.pytorch_wrapper.pt_var import PtVar
from .modules.pytorch_wrapper.pt_view import PtView
from .modules.pytorch_wrapper.pt_where import PtWhere
from .modules.pytorch_wrapper.pt_zeros import PtZeros
from .modules.pytorch_wrapper.ptf_gelu import PtfGELU
from .modules.pytorch_wrapper.ptf_leaky_relu import PtfLeakyReLU
from .modules.pytorch_wrapper.ptf_log_softmax import PtfLogSoftmax
from .modules.pytorch_wrapper.ptf_relu import PtfReLU
from .modules.pytorch_wrapper.ptf_sigmoid import PtfSigmoid
from .modules.pytorch_wrapper.ptf_silu import PtfSiLU
from .modules.pytorch_wrapper.ptf_softmax import PtfSoftmax
from .modules.pytorch_wrapper.ptf_softplus import PtfSoftplus
from .modules.pytorch_wrapper.ptf_tanh import PtfTanh
from .modules.pytorch_wrapper.ptn_chained_model import PtnChainedModel
from .modules.pytorch_wrapper.ptn_conv_model import PtnConvModel
from .modules.pytorch_wrapper.ptn_linear import PtnLinear
from .modules.pytorch_wrapper.ptn_linear_model import PtnLinearModel
@@ -139,6 +150,7 @@ NODE_CLASS_MAPPINGS: Dict[str, Type[T]] = {
"PtAbs": PtAbs,
"PtAcos": PtAcos,
"PtAdd": PtAdd,
"PtApplyFunction": PtApplyFunction,
"PtArange": PtArange,
"PtArgmax": PtArgmax,
"PtArgmin": PtArgmin,
@@ -247,6 +259,16 @@ NODE_CLASS_MAPPINGS: Dict[str, Type[T]] = {
"PtView": PtView,
"PtWhere": PtWhere,
"PtZeros": PtZeros,
"PtfGELU": PtfGELU,
"PtfLeakyReLU": PtfLeakyReLU,
"PtfLogSoftmax": PtfLogSoftmax,
"PtfReLU": PtfReLU,
"PtfSiLU": PtfSiLU,
"PtfSigmoid": PtfSigmoid,
"PtfSoftmax": PtfSoftmax,
"PtfSoftplus": PtfSoftplus,
"PtfTanh": PtfTanh,
"PtnChainedModel": PtnChainedModel,
"PtnConvModel": PtnConvModel,
"PtnLinear": PtnLinear,
"PtnLinearModel": PtnLinearModel,
@@ -275,6 +297,7 @@ NODE_DISPLAY_NAME_MAPPINGS: Dict[str, str] = {
"PtAbs": "Pt Abs",
"PtAcos": "Pt Acos",
"PtAdd": "Pt Add",
"PtApplyFunction": "Pt Apply Function",
"PtArange": "Pt Arange",
"PtArgmax": "Pt Argmax",
"PtArgmin": "Pt Argmin",
@@ -383,6 +406,16 @@ NODE_DISPLAY_NAME_MAPPINGS: Dict[str, str] = {
"PtView": "Pt View",
"PtWhere": "Pt Where",
"PtZeros": "Pt Zeros",
"PtfGELU": "Ptf GELU",
"PtfLeakyReLU": "Ptf Leaky ReLU",
"PtfLogSoftmax": "Ptf Log Softmax",
"PtfReLU": "Ptf ReLU",
"PtfSiLU": "Ptf SiLU",
"PtfSigmoid": "Ptf Sigmoid",
"PtfSoftmax": "Ptf Softmax",
"PtfSoftplus": "Ptf Softplus",
"PtfTanh": "Ptf Tanh",
"PtnChainedModel": "Ptn Chained Model",
"PtnConvModel": "Ptn Conv Model",
"PtnLinear": "Ptn Linear",
"PtnLinearModel": "Ptn Linear Model",
+3
View File
@@ -78,6 +78,9 @@ def format_display_name(class_name):
("MP L", "MPL"),
("SN S", "SNS"),
(" N A", " NA"),
("Re L U", "ReLU"),
("Si L U", "SiLU"),
("G E L U", "GELU"),
("Data Frame", "DataFrame"),
("Multi Index", "MultiIndex"),
("MPL Bar", "MPL Bar Chart"),
+1 -1
View File
@@ -125,7 +125,7 @@ def process_python_file(file_path: str, output_dir: str, node_list: Dict[str, Li
md_file.write(output_section + "\n")
md_file.write("<HR>\n")
md_file.write(f"Category: {category}\n\n")
md_file.write(f"ComfyUI Data Analysis Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.\n")
md_file.write(f"ComfyUI Pt Wrapper Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.\n")
node_list[category].append((class_info['title'][2:], file_name, class_info['first_sentence']))
+13
View File
@@ -27,6 +27,18 @@
| [Pt Bitwise Or](pt_bitwise_or.md) | Performs a bitwise OR operation on two PyTorch tensors element-wise. |
| [Pt Bitwise Right Shift](pt_bitwise_right_shift.md) | Performs a bitwise right shift operation on two PyTorch tensors element-wise. |
| [Pt Bitwise Xor](pt_bitwise_xor.md) | Performs a bitwise XOR operation on two PyTorch tensors element-wise. |
## PyTorch wrapper - Callable
| Node | Description |
| --- | --- |
| [Ptf GELU](ptf_gelu.md) | |
| [Ptf LeakyReLU](ptf_leaky_relu.md) | |
| [Ptf Log Softmax](ptf_log_softmax.md) | A PyTorch wrapper for the log_softmax activation function. |
| [Ptf ReLU](ptf_relu.md) | |
| [Ptf SiLU](ptf_silu.md) | |
| [Ptf Sigmoid](ptf_sigmoid.md) | A PyTorch wrapper for the sigmoid activation function. |
| [Ptf Softmax](ptf_softmax.md) | A PyTorch wrapper for the softmax activation function. |
| [Ptf Softplus](ptf_softplus.md) | |
| [Ptf Tanh](ptf_tanh.md) | A PyTorch wrapper for the tanh activation function. |
## PyTorch wrapper - Comparison operations
| Node | Description |
| --- | --- |
@@ -143,6 +155,7 @@
## PyTorch wrapper - Training
| Node | Description |
| --- | --- |
| [Pt Apply Function](pt_apply_function.md) | Applies a function to the input tensor. |
| [Pt Data Loader](pt_data_loader.md) | Loads data from a dataset node and creates a PyTorch DataLoader. |
| [Pt Data Loader From Tensors](pt_data_loader_from_tensors.md) | Creates a Torchvision Dataloader from a pair of tensors. |
| [Pt Evaluate Classification Model](pt_evaluate_classification_model.md) | Performs inference on test data and computes evaluation metrics. |
+1 -1
View File
@@ -14,4 +14,4 @@ Computes the absolute value of each element in a PyTorch tensor.
<HR>
Category: PyTorch wrapper - Math operations
ComfyUI Data Analysis Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
ComfyUI Pt Wrapper Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
+1 -1
View File
@@ -14,4 +14,4 @@ Computes the arccosine (inverse cosine) of a PyTorch tensor element-wise.
<HR>
Category: PyTorch wrapper - Math operations
ComfyUI Data Analysis Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
ComfyUI Pt Wrapper Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
+1 -1
View File
@@ -15,4 +15,4 @@ Adds two PyTorch tensors.
<HR>
Category: PyTorch wrapper - Arithmetic operations
ComfyUI Data Analysis Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
ComfyUI Pt Wrapper Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
+22
View File
@@ -0,0 +1,22 @@
# Pt Apply Function
Applies a function to the input tensor.
### Fields:
- tens: Tensor to which the function be applied.
- closure: Differentiable function to apply to the tensor.
## Input
| Name | Data type |
|---|---|
| tens | Tensor |
| closure | Ptcallable |
## Output
| Data type |
|---|
| Tensor |
<HR>
Category: PyTorch wrapper - Training
ComfyUI Pt Wrapper Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
+1 -1
View File
@@ -20,4 +20,4 @@ tensor range values in text fields. The function also ensures proper dtype selec
<HR>
Category: PyTorch wrapper - Tensor creation
ComfyUI Data Analysis Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
ComfyUI Pt Wrapper Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
+1 -1
View File
@@ -21,4 +21,4 @@ Specify the dimension in the `dim` field using an integer as shown below:
<HR>
Category: PyTorch wrapper - Reduction operation & Summary statistics
ComfyUI Data Analysis Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
ComfyUI Pt Wrapper Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
+1 -1
View File
@@ -21,4 +21,4 @@ Specify the dimension in the `dim` field using an integer as shown below:
<HR>
Category: PyTorch wrapper - Reduction operation & Summary statistics
ComfyUI Data Analysis Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
ComfyUI Pt Wrapper Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
+1 -1
View File
@@ -14,4 +14,4 @@ Computes the arcsine (inverse sine) of a PyTorch tensor element-wise.
<HR>
Category: PyTorch wrapper - Math operations
ComfyUI Data Analysis Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
ComfyUI Pt Wrapper Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
+1 -1
View File
@@ -14,4 +14,4 @@ Computes the arc tangent (inverse tangent) of a PyTorch tensor element-wise.
<HR>
Category: PyTorch wrapper - Math operations
ComfyUI Data Analysis Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
ComfyUI Pt Wrapper Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
+1 -1
View File
@@ -15,4 +15,4 @@ Performs a bitwise AND operation on two PyTorch tensors element-wise.
<HR>
Category: PyTorch wrapper - Bitwise operations
ComfyUI Data Analysis Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
ComfyUI Pt Wrapper Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
+1 -1
View File
@@ -15,4 +15,4 @@ Performs a bitwise left shift operation on two PyTorch tensors element-wise.
<HR>
Category: PyTorch wrapper - Bitwise operations
ComfyUI Data Analysis Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
ComfyUI Pt Wrapper Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
+1 -1
View File
@@ -14,4 +14,4 @@ Performs a bitwise NOT operation on a PyTorch tensor element-wise.
<HR>
Category: PyTorch wrapper - Bitwise operations
ComfyUI Data Analysis Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
ComfyUI Pt Wrapper Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
+1 -1
View File
@@ -15,4 +15,4 @@ Performs a bitwise OR operation on two PyTorch tensors element-wise.
<HR>
Category: PyTorch wrapper - Bitwise operations
ComfyUI Data Analysis Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
ComfyUI Pt Wrapper Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
+1 -1
View File
@@ -15,4 +15,4 @@ Performs a bitwise right shift operation on two PyTorch tensors element-wise.
<HR>
Category: PyTorch wrapper - Bitwise operations
ComfyUI Data Analysis Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
ComfyUI Pt Wrapper Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
+1 -1
View File
@@ -15,4 +15,4 @@ Performs a bitwise XOR operation on two PyTorch tensors element-wise.
<HR>
Category: PyTorch wrapper - Bitwise operations
ComfyUI Data Analysis Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
ComfyUI Pt Wrapper Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
+1 -1
View File
@@ -15,4 +15,4 @@ Performs batched matrix multiplication on two 3D PyTorch tensors.
<HR>
Category: PyTorch wrapper - Matrix operations
ComfyUI Data Analysis Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
ComfyUI Pt Wrapper Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
+1 -1
View File
@@ -19,4 +19,4 @@ will create a 1D boolean tensor.
<HR>
Category: PyTorch wrapper - Tensor creation
ComfyUI Data Analysis Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
ComfyUI Pt Wrapper Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
+1 -1
View File
@@ -14,4 +14,4 @@ Computes the cosine of a PyTorch tensor element-wise.
<HR>
Category: PyTorch wrapper - Math operations
ComfyUI Data Analysis Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
ComfyUI Pt Wrapper Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
+1 -1
View File
@@ -14,4 +14,4 @@ Computes the hyperbolic cosine of a PyTorch tensor element-wise.
<HR>
Category: PyTorch wrapper - Math operations
ComfyUI Data Analysis Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
ComfyUI Pt Wrapper Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
+1 -1
View File
@@ -20,4 +20,4 @@ This transposition can be performed using the "Pt Permute" node with (0, 2, 3, 1
<HR>
Category: PyTorch wrapper - Image processing
ComfyUI Data Analysis Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
ComfyUI Pt Wrapper Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
+1 -1
View File
@@ -26,4 +26,4 @@ If True, shuffles the dataset before each epoch.
<HR>
Category: PyTorch wrapper - Training
ComfyUI Data Analysis Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
ComfyUI Pt Wrapper Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
@@ -25,4 +25,4 @@ Parameters
<HR>
Category: PyTorch wrapper - Training
ComfyUI Data Analysis Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
ComfyUI Pt Wrapper Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
+1 -1
View File
@@ -15,4 +15,4 @@ Divides one PyTorch tensor by another element-wise.
<HR>
Category: PyTorch wrapper - Arithmetic operations
ComfyUI Data Analysis Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
ComfyUI Pt Wrapper Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
+1 -1
View File
@@ -23,4 +23,4 @@ Sublist format is not supported.
<HR>
Category: PyTorch wrapper - Matrix operations
ComfyUI Data Analysis Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
ComfyUI Pt Wrapper Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
+1 -1
View File
@@ -15,4 +15,4 @@ Tests whether two PyTorch tensors are equal element-wise.
<HR>
Category: PyTorch wrapper - Comparison operations
ComfyUI Data Analysis Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
ComfyUI Pt Wrapper Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
@@ -20,4 +20,4 @@ Performs inference on test data and computes evaluation metrics.
<HR>
Category: PyTorch wrapper - Training
ComfyUI Data Analysis Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
ComfyUI Pt Wrapper Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
+1 -1
View File
@@ -14,4 +14,4 @@ Performs an exponential operation on a PyTorch tensor element-wise.
<HR>
Category: PyTorch wrapper - Math operations
ComfyUI Data Analysis Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
ComfyUI Pt Wrapper Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
+1 -1
View File
@@ -14,4 +14,4 @@ Flattens a PyTorch tensor into a 1D tensor.
<HR>
Category: PyTorch wrapper - Transform
ComfyUI Data Analysis Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
ComfyUI Pt Wrapper Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
+1 -1
View File
@@ -15,4 +15,4 @@ using values entered in the text field.
<HR>
Category: PyTorch wrapper - Tensor creation
ComfyUI Data Analysis Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
ComfyUI Pt Wrapper Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
+1 -1
View File
@@ -15,4 +15,4 @@ Performs element-wise floor division on two PyTorch tensors.
<HR>
Category: PyTorch wrapper - Arithmetic operations
ComfyUI Data Analysis Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
ComfyUI Pt Wrapper Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
+1 -1
View File
@@ -14,4 +14,4 @@ Casts an Image tensor as a PyTorch tensor.
<HR>
Category: PyTorch wrapper - Image processing
ComfyUI Data Analysis Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
ComfyUI Pt Wrapper Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
+1 -1
View File
@@ -14,4 +14,4 @@ Casts an image tensor to a PyTorch tensor and transposes it from (H, W, C) to (C
<HR>
Category: PyTorch wrapper - Image processing
ComfyUI Data Analysis Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
ComfyUI Pt Wrapper Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
+1 -1
View File
@@ -14,4 +14,4 @@ Casts a latent tensor as a PyTorch tensor.
<HR>
Category: PyTorch wrapper - Tensor creation
ComfyUI Data Analysis Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
ComfyUI Pt Wrapper Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
+1 -1
View File
@@ -14,4 +14,4 @@ Converts a NumPy ndarray to a PyTorch tensor while preserving its data type.
<HR>
Category: PyTorch wrapper - Tensor creation
ComfyUI Data Analysis Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
ComfyUI Pt Wrapper Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
+1 -1
View File
@@ -18,4 +18,4 @@ For example, if you want to create a 4D tensor of batch size=2, channel=3, heigh
<HR>
Category: PyTorch wrapper - Tensor creation
ComfyUI Data Analysis Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
ComfyUI Pt Wrapper Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
+1 -1
View File
@@ -56,4 +56,4 @@ Let's analyze the case where `dim = 1`:
<HR>
Category: PyTorch wrapper - Indexing and Slicing Operations
ComfyUI Data Analysis Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
ComfyUI Pt Wrapper Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
+1 -1
View File
@@ -15,4 +15,4 @@ Tests whether elements in the first PyTorch tensor are greater than or equal to
<HR>
Category: PyTorch wrapper - Comparison operations
ComfyUI Data Analysis Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
ComfyUI Pt Wrapper Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
+1 -1
View File
@@ -15,4 +15,4 @@ Tests whether elements in the first PyTorch tensor are greater than the correspo
<HR>
Category: PyTorch wrapper - Comparison operations
ComfyUI Data Analysis Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
ComfyUI Pt Wrapper Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
+1 -1
View File
@@ -38,4 +38,4 @@ Output Tensor:
<HR>
Category: PyTorch wrapper - Indexing and Slicing Operations
ComfyUI Data Analysis Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
ComfyUI Pt Wrapper Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
+1 -1
View File
@@ -15,4 +15,4 @@ using values entered in the text field.
<HR>
Category: PyTorch wrapper - Tensor creation
ComfyUI Data Analysis Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
ComfyUI Pt Wrapper Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
@@ -20,4 +20,4 @@ This transposition can be performed using the "Pt Permute" node with (0, 2, 3, 1
<HR>
Category: PyTorch wrapper - Image processing
ComfyUI Data Analysis Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
ComfyUI Pt Wrapper Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
+1 -1
View File
@@ -21,4 +21,4 @@ This transposition can be performed using the "Pt Permute" node with (0, 2, 3, 1
<HR>
Category: PyTorch wrapper - Image processing
ComfyUI Data Analysis Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
ComfyUI Pt Wrapper Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
+1 -1
View File
@@ -15,4 +15,4 @@ Tests whether elements in the first PyTorch tensor are less than or equal to the
<HR>
Category: PyTorch wrapper - Comparison operations
ComfyUI Data Analysis Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
ComfyUI Pt Wrapper Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
+1 -1
View File
@@ -20,4 +20,4 @@ The steps value is converted to an int.
<HR>
Category: PyTorch wrapper - Tensor creation
ComfyUI Data Analysis Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
ComfyUI Pt Wrapper Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
+1 -1
View File
@@ -15,4 +15,4 @@ A wrapper class for saving a PyTorch model.
<HR>
Category: PyTorch wrapper - Training
ComfyUI Data Analysis Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
ComfyUI Pt Wrapper Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
+1 -1
View File
@@ -14,4 +14,4 @@ Computes the natural logarithm (log base e) of a PyTorch tensor element-wise.
<HR>
Category: PyTorch wrapper - Math operations
ComfyUI Data Analysis Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
ComfyUI Pt Wrapper Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
+1 -1
View File
@@ -15,4 +15,4 @@ Performs a logical AND operation on two PyTorch tensors element-wise.
<HR>
Category: PyTorch wrapper - Logical operations
ComfyUI Data Analysis Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
ComfyUI Pt Wrapper Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
+1 -1
View File
@@ -14,4 +14,4 @@ Performs a logical NOT operation on a PyTorch tensor element-wise.
<HR>
Category: PyTorch wrapper - Logical operations
ComfyUI Data Analysis Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
ComfyUI Pt Wrapper Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
+1 -1
View File
@@ -15,4 +15,4 @@ Performs a logical OR operation on two PyTorch tensors element-wise.
<HR>
Category: PyTorch wrapper - Logical operations
ComfyUI Data Analysis Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
ComfyUI Pt Wrapper Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
+1 -1
View File
@@ -15,4 +15,4 @@ Performs a logical XOR operation on two PyTorch tensors element-wise.
<HR>
Category: PyTorch wrapper - Logical operations
ComfyUI Data Analysis Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
ComfyUI Pt Wrapper Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
+1 -1
View File
@@ -15,4 +15,4 @@ Tests whether elements in the first PyTorch tensor are less than the correspondi
<HR>
Category: PyTorch wrapper - Comparison operations
ComfyUI Data Analysis Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
ComfyUI Pt Wrapper Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
+1 -1
View File
@@ -31,4 +31,4 @@ Output Tensor:
<HR>
Category: PyTorch wrapper - Indexing and Slicing Operations
ComfyUI Data Analysis Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
ComfyUI Pt Wrapper Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
+1 -1
View File
@@ -15,4 +15,4 @@ Performs matrix multiplication on two PyTorch tensors.
<HR>
Category: PyTorch wrapper - Matrix operations
ComfyUI Data Analysis Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
ComfyUI Pt Wrapper Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
+1 -1
View File
@@ -21,4 +21,4 @@ Specify the dimension(s) in the `dim` field using an integer, a list, or a tuple
<HR>
Category: PyTorch wrapper - Reduction operation & Summary statistics
ComfyUI Data Analysis Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
ComfyUI Pt Wrapper Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
+1 -1
View File
@@ -23,4 +23,4 @@ Specify the dimension(s) in the `dim` field using an integer, a list, or a tuple
<HR>
Category: PyTorch wrapper - Reduction operation & Summary statistics
ComfyUI Data Analysis Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
ComfyUI Pt Wrapper Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
+1 -1
View File
@@ -26,4 +26,4 @@ Note that PtMedian calls torch.median(), which returns the lower of the two numb
<HR>
Category: PyTorch wrapper - Reduction operation & Summary statistics
ComfyUI Data Analysis Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
ComfyUI Pt Wrapper Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
+1 -1
View File
@@ -21,4 +21,4 @@ Specify the dimension(s) in the `dim` field using an integer, a list, or a tuple
<HR>
Category: PyTorch wrapper - Reduction operation & Summary statistics
ComfyUI Data Analysis Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
ComfyUI Pt Wrapper Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
+1 -1
View File
@@ -15,4 +15,4 @@ Performs 2D matrix multiplication on two PyTorch tensors.
<HR>
Category: PyTorch wrapper - Matrix operations
ComfyUI Data Analysis Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
ComfyUI Pt Wrapper Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
+1 -1
View File
@@ -15,4 +15,4 @@ Multiplies two PyTorch tensors element-wise.
<HR>
Category: PyTorch wrapper - Arithmetic operations
ComfyUI Data Analysis Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
ComfyUI Pt Wrapper Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
+1 -1
View File
@@ -15,4 +15,4 @@ Tests whether two PyTorch tensors are not equal element-wise.
<HR>
Category: PyTorch wrapper - Comparison operations
ComfyUI Data Analysis Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
ComfyUI Pt Wrapper Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
+1 -1
View File
@@ -14,4 +14,4 @@ Computes the negation of each element in a PyTorch tensor.
<HR>
Category: PyTorch wrapper - Math operations
ComfyUI Data Analysis Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
ComfyUI Pt Wrapper Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
+1 -1
View File
@@ -17,4 +17,4 @@ For example, if you want to create a 4D tensor of batch size=2, channel=3, heigh
<HR>
Category: PyTorch wrapper - Tensor creation
ComfyUI Data Analysis Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
ComfyUI Pt Wrapper Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
+1 -1
View File
@@ -20,4 +20,4 @@ This transposition can be performed using the "Pt Permute" node with (0, 2, 3, 1
<HR>
Category: PyTorch wrapper - Image processing
ComfyUI Data Analysis Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
ComfyUI Pt Wrapper Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
+1 -1
View File
@@ -22,4 +22,4 @@ Specify the new axis order in the `new_axes` field using brackets, as shown belo
<HR>
Category: PyTorch wrapper - Transform
ComfyUI Data Analysis Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
ComfyUI Pt Wrapper Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
+1 -1
View File
@@ -15,4 +15,4 @@ Raises one PyTorch tensor to the power of another element-wise.
<HR>
Category: PyTorch wrapper - Arithmetic operations
ComfyUI Data Analysis Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
ComfyUI Pt Wrapper Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
@@ -19,4 +19,4 @@ Performs inference on input data.
<HR>
Category: PyTorch wrapper - Training
ComfyUI Data Analysis Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
ComfyUI Pt Wrapper Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
@@ -16,4 +16,4 @@ Performs inference on input data.
<HR>
Category: PyTorch wrapper - Training
ComfyUI Data Analysis Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
ComfyUI Pt Wrapper Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
+1 -1
View File
@@ -25,4 +25,4 @@ or
<HR>
Category: PyTorch wrapper - Reduction operation & Summary statistics
ComfyUI Data Analysis Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
ComfyUI Pt Wrapper Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
+1 -1
View File
@@ -18,4 +18,4 @@ For example, if you want to create a 4D tensor of batch size=2, channel=3, heigh
<HR>
Category: PyTorch wrapper - Tensor creation
ComfyUI Data Analysis Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
ComfyUI Pt Wrapper Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
+1 -1
View File
@@ -19,4 +19,4 @@ enter [2,3,96,32] for size, 0 for min_value, and 10 for max_value.
<HR>
Category: PyTorch wrapper - Tensor creation
ComfyUI Data Analysis Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
ComfyUI Pt Wrapper Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
+1 -1
View File
@@ -18,4 +18,4 @@ For example, if you want to create a 4D tensor of batch size=2, channel=3, heigh
<HR>
Category: PyTorch wrapper - Tensor creation
ComfyUI Data Analysis Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
ComfyUI Pt Wrapper Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
+1 -1
View File
@@ -15,4 +15,4 @@ Computes the element-wise remainder of division between two PyTorch tensors.
<HR>
Category: PyTorch wrapper - Arithmetic operations
ComfyUI Data Analysis Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
ComfyUI Pt Wrapper Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
+1 -1
View File
@@ -24,4 +24,4 @@ Use -1 to automatically infer a dimension, e.g.:
<HR>
Category: PyTorch wrapper - Transform
ComfyUI Data Analysis Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
ComfyUI Pt Wrapper Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
+1 -1
View File
@@ -15,4 +15,4 @@ A wrapper class for saving a PyTorch model.
<HR>
Category: IO
ComfyUI Data Analysis Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
ComfyUI Pt Wrapper Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
+1 -1
View File
@@ -21,4 +21,4 @@ Generates a new tensor by replacing values at specified positions using an index
<HR>
Category: PyTorch wrapper - Indexing and Slicing Operations
ComfyUI Data Analysis Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
ComfyUI Pt Wrapper Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
+1 -1
View File
@@ -14,4 +14,4 @@ Displays PyTorch Size object as a string.
<HR>
Category: Display data
ComfyUI Data Analysis Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
ComfyUI Pt Wrapper Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
+1 -1
View File
@@ -15,4 +15,4 @@ the tensor contains more elements than the threshold set internally.
<HR>
Category: Display data
ComfyUI Data Analysis Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
ComfyUI Pt Wrapper Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
+1 -1
View File
@@ -14,4 +14,4 @@ Computes the sine of a PyTorch tensor element-wise.
<HR>
Category: PyTorch wrapper - Math operations
ComfyUI Data Analysis Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
ComfyUI Pt Wrapper Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
+1 -1
View File
@@ -14,4 +14,4 @@ Computes the hyperbolic sine of a PyTorch tensor element-wise.
<HR>
Category: PyTorch wrapper - Math operations
ComfyUI Data Analysis Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
ComfyUI Pt Wrapper Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
+1 -1
View File
@@ -14,4 +14,4 @@ Extracts the PyTorch Size object of a PyTorch tensor using the size() method.
<HR>
Category: PyTorch wrapper - Size object support
ComfyUI Data Analysis Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
ComfyUI Pt Wrapper Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
+1 -1
View File
@@ -14,4 +14,4 @@ Creates a PyTorch Size using values entered in the text field.
<HR>
Category: PyTorch wrapper - Size object support
ComfyUI Data Analysis Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
ComfyUI Pt Wrapper Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
+1 -1
View File
@@ -14,4 +14,4 @@ Converts PyTorch Size object to NumPy ndarray.
<HR>
Category: PyTorch wrapper - Size object support
ComfyUI Data Analysis Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
ComfyUI Pt Wrapper Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
+1 -1
View File
@@ -14,4 +14,4 @@ Converts PyTorch Size object to a Python string.
<HR>
Category: PyTorch wrapper - Size object support
ComfyUI Data Analysis Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
ComfyUI Pt Wrapper Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
+1 -1
View File
@@ -14,4 +14,4 @@ Computes the square root of each element in a PyTorch tensor.
<HR>
Category: PyTorch wrapper - Math operations
ComfyUI Data Analysis Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
ComfyUI Pt Wrapper Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
+1 -1
View File
@@ -17,4 +17,4 @@ Specifying a tuple of dimensions is not supported yet.
<HR>
Category: PyTorch wrapper - Transform
ComfyUI Data Analysis Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
ComfyUI Pt Wrapper Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
+1 -1
View File
@@ -25,4 +25,4 @@ Specify the dimension(s) in the `dim` field using an integer, a list, or a tuple
<HR>
Category: PyTorch wrapper - Reduction operation & Summary statistics
ComfyUI Data Analysis Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
ComfyUI Pt Wrapper Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
+1 -1
View File
@@ -15,4 +15,4 @@ Subtracts one PyTorch tensor from another.
<HR>
Category: PyTorch wrapper - Arithmetic operations
ComfyUI Data Analysis Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
ComfyUI Pt Wrapper Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
+1 -1
View File
@@ -21,4 +21,4 @@ Specify the dimension(s) in the `dim` field using an integer, a list, or a tuple
<HR>
Category: PyTorch wrapper - Reduction operation & Summary statistics
ComfyUI Data Analysis Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
ComfyUI Pt Wrapper Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
+1 -1
View File
@@ -14,4 +14,4 @@ Computes the tangent of a PyTorch tensor element-wise.
<HR>
Category: PyTorch wrapper - Math operations
ComfyUI Data Analysis Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
ComfyUI Pt Wrapper Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
+1 -1
View File
@@ -14,4 +14,4 @@ Computes the hyperbolic tangent of a PyTorch tensor element-wise.
<HR>
Category: PyTorch wrapper - Math operations
ComfyUI Data Analysis Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
ComfyUI Pt Wrapper Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
+1 -1
View File
@@ -14,4 +14,4 @@ Converts the input tensor's data type to bfloat16.
<HR>
Category: PyTorch wrapper - Data type conversion
ComfyUI Data Analysis Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
ComfyUI Pt Wrapper Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
+1 -1
View File
@@ -14,4 +14,4 @@ Converts the input tensor's data type to float16.
<HR>
Category: PyTorch wrapper - Data type conversion
ComfyUI Data Analysis Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
ComfyUI Pt Wrapper Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
+1 -1
View File
@@ -14,4 +14,4 @@ Converts the input tensor's data type to float32.
<HR>
Category: PyTorch wrapper - Data type conversion
ComfyUI Data Analysis Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
ComfyUI Pt Wrapper Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
+1 -1
View File
@@ -14,4 +14,4 @@ Converts the input tensor's data type to float64.
<HR>
Category: PyTorch wrapper - Data type conversion
ComfyUI Data Analysis Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
ComfyUI Pt Wrapper Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
+1 -1
View File
@@ -14,4 +14,4 @@ Casts a PyTorch tensor as an Image tensor.
<HR>
Category: PyTorch wrapper - Image processing
ComfyUI Data Analysis Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
ComfyUI Pt Wrapper Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
+1 -1
View File
@@ -14,4 +14,4 @@ Casts a PyTorch tensor as an Image tensor and transposes it from (C, H, W) to (H
<HR>
Category: PyTorch wrapper - Image processing
ComfyUI Data Analysis Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
ComfyUI Pt Wrapper Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.

Some files were not shown because too many files have changed in this diff Show More