Updated docstrings for activation functions and data type conversion functions.

This commit is contained in:
HowToSD
2025-03-14 19:36:21 -07:00
parent d5a14828df
commit 56e5599423
39 changed files with 54 additions and 57 deletions
+18 -18
View File
@@ -30,15 +30,15 @@
## 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. |
| [Ptf GELU](ptf_gelu.md) | The GELU activation function. |
| [Ptf LeakyReLU](ptf_leaky_relu.md) | The LeakyReLU activation function. |
| [Ptf Log Softmax](ptf_log_softmax.md) | The log softmax activation function. |
| [Ptf ReLU](ptf_relu.md) | The ReLU activation function. |
| [Ptf SiLU](ptf_silu.md) | The SiLU activation function. |
| [Ptf Sigmoid](ptf_sigmoid.md) | The sigmoid activation function. |
| [Ptf Softmax](ptf_softmax.md) | The softmax activation function. |
| [Ptf Softplus](ptf_softplus.md) | The Softplus activation function. |
| [Ptf Tanh](ptf_tanh.md) | The tanh activation function. |
## PyTorch wrapper - Comparison operations
| Node | Description |
| --- | --- |
@@ -51,15 +51,15 @@
## PyTorch wrapper - Data type conversion
| Node | Description |
| --- | --- |
| [Pt To Bfloat](pt_to_bfloat16.md) | Converts the input tensor's data type to bfloat16. |
| [Pt To Float](pt_to_float16.md) | Converts the input tensor's data type to float16. |
| [Pt To Float](pt_to_float32.md) | Converts the input tensor's data type to float32. |
| [Pt To Float](pt_to_float64.md) | Converts the input tensor's data type to float64. |
| [Pt To Int](pt_to_int16.md) | Converts the input tensor's data type to int16. |
| [Pt To Int](pt_to_int32.md) | Converts the input tensor's data type to int32. |
| [Pt To Int](pt_to_int64.md) | Converts the input tensor's data type to int64. |
| [Pt To Int](pt_to_int8.md) | Converts the input tensor's data type to int8. |
| [Pt To Uint](pt_to_uint8.md) | Converts the input tensor's data type to uint8. |
| [Pt To Bfloat16](pt_to_bfloat16.md) | Converts the input tensor's data type to bfloat16. |
| [Pt To Float16](pt_to_float16.md) | Converts the input tensor's data type to float16. |
| [Pt To Float32](pt_to_float32.md) | Converts the input tensor's data type to float32. |
| [Pt To Float64](pt_to_float64.md) | Converts the input tensor's data type to float64. |
| [Pt To Int16](pt_to_int16.md) | Converts the input tensor's data type to int16. |
| [Pt To Int32](pt_to_int32.md) | Converts the input tensor's data type to int32. |
| [Pt To Int64](pt_to_int64.md) | Converts the input tensor's data type to int64. |
| [Pt To Int8](pt_to_int8.md) | Converts the input tensor's data type to int8. |
| [Pt To Uint8](pt_to_uint8.md) | Converts the input tensor's data type to uint8. |
## PyTorch wrapper - Image processing
| Node | Description |
| --- | --- |
+1 -1
View File
@@ -1,4 +1,4 @@
# Pt To Bfloat
# Pt To Bfloat16
Converts the input tensor's data type to bfloat16.
## Input
+1 -1
View File
@@ -1,4 +1,4 @@
# Pt To Float
# Pt To Float16
Converts the input tensor's data type to float16.
## Input
+1 -1
View File
@@ -1,4 +1,4 @@
# Pt To Float
# Pt To Float32
Converts the input tensor's data type to float32.
## Input
+1 -1
View File
@@ -1,4 +1,4 @@
# Pt To Float
# Pt To Float64
Converts the input tensor's data type to float64.
## Input
+1 -1
View File
@@ -1,4 +1,4 @@
# Pt To Int
# Pt To Int16
Converts the input tensor's data type to int16.
## Input
+1 -1
View File
@@ -1,4 +1,4 @@
# Pt To Int
# Pt To Int32
Converts the input tensor's data type to int32.
## Input
+1 -1
View File
@@ -1,4 +1,4 @@
# Pt To Int
# Pt To Int64
Converts the input tensor's data type to int64.
## Input
+1 -1
View File
@@ -1,4 +1,4 @@
# Pt To Int
# Pt To Int8
Converts the input tensor's data type to int8.
## Input
+1 -1
View File
@@ -1,4 +1,4 @@
# Pt To Uint
# Pt To Uint8
Converts the input tensor's data type to uint8.
## Input
+1 -1
View File
@@ -1,5 +1,5 @@
# Ptf GELU
A PyTorch wrapper for the GELU activation function.
The GELU activation function.
This class provides a callable that applies the GELU activation function
from `torch.nn.functional`.
+1 -1
View File
@@ -1,5 +1,5 @@
# Ptf LeakyReLU
A PyTorch wrapper for the LeakyReLU activation function.
The LeakyReLU activation function.
This class provides a callable that applies the LeakyReLU activation function
from `torch.nn.functional`.
+1 -1
View File
@@ -1,5 +1,5 @@
# Ptf Log Softmax
A PyTorch wrapper for the log_softmax activation function.
The log softmax activation function.
This class provides a callable that applies the log_softmax activation function
from `torch.nn.functional`.
+1 -1
View File
@@ -1,5 +1,5 @@
# Ptf ReLU
A PyTorch wrapper for the ReLU activation function.
The ReLU activation function.
This class provides a callable that applies the ReLU activation function
from `torch.nn.functional`.
+1 -1
View File
@@ -1,5 +1,5 @@
# Ptf Sigmoid
A PyTorch wrapper for the sigmoid activation function.
The sigmoid activation function.
This class provides a callable that applies the sigmoid activation function
from `torch.nn.functional`.
+1 -1
View File
@@ -1,5 +1,5 @@
# Ptf SiLU
A PyTorch wrapper for the SiLU activation function.
The SiLU activation function.
This class provides a callable that applies the SiLU activation function
from `torch.nn.functional`.
+1 -1
View File
@@ -1,5 +1,5 @@
# Ptf Softmax
A PyTorch wrapper for the softmax activation function.
The softmax activation function.
This class provides a callable that applies the softmax activation function
from `torch.nn.functional`.
+1 -1
View File
@@ -1,5 +1,5 @@
# Ptf Softplus
A PyTorch wrapper for the Softplus activation function.
The Softplus activation function.
This class provides a callable that applies the Softplus activation function
from `torch.nn.functional`.
+1 -1
View File
@@ -1,5 +1,5 @@
# Ptf Tanh
A PyTorch wrapper for the tanh activation function.
The tanh activation function.
This class provides a callable that applies the tanh activation function
from `torch.nn.functional`.
-7
View File
@@ -1,7 +0,0 @@
# Resnet Model
<HR>
Category: Miscellaneous
ComfyUI Data Analysis Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
@@ -3,6 +3,7 @@ import torch
class PtToBfloat16:
"""
Pt To Bfloat16:
Converts the input tensor's data type to bfloat16.
category: PyTorch wrapper - Data type conversion
+1
View File
@@ -3,6 +3,7 @@ import torch
class PtToFloat16:
"""
Pt To Float16:
Converts the input tensor's data type to float16.
category: PyTorch wrapper - Data type conversion
+1
View File
@@ -3,6 +3,7 @@ import torch
class PtToFloat32:
"""
Pt To Float32:
Converts the input tensor's data type to float32.
category: PyTorch wrapper - Data type conversion
+1
View File
@@ -3,6 +3,7 @@ import torch
class PtToFloat64:
"""
Pt To Float64:
Converts the input tensor's data type to float64.
category: PyTorch wrapper - Data type conversion
+1
View File
@@ -3,6 +3,7 @@ import torch
class PtToInt16:
"""
Pt To Int16:
Converts the input tensor's data type to int16.
category: PyTorch wrapper - Data type conversion
+1
View File
@@ -3,6 +3,7 @@ import torch
class PtToInt32:
"""
Pt To Int32:
Converts the input tensor's data type to int32.
category: PyTorch wrapper - Data type conversion
+1
View File
@@ -3,6 +3,7 @@ import torch
class PtToInt64:
"""
Pt To Int64:
Converts the input tensor's data type to int64.
category: PyTorch wrapper - Data type conversion
+1
View File
@@ -3,6 +3,7 @@ import torch
class PtToInt8:
"""
Pt To Int8:
Converts the input tensor's data type to int8.
category: PyTorch wrapper - Data type conversion
+1
View File
@@ -3,6 +3,7 @@ import torch
class PtToUint8:
"""
Pt To Uint8:
Converts the input tensor's data type to uint8.
category: PyTorch wrapper - Data type conversion
+1 -2
View File
@@ -5,8 +5,7 @@ import torch.nn.functional
class PtfGELU:
"""
Ptf GELU:
A PyTorch wrapper for the GELU activation function.
The GELU activation function.
This class provides a callable that applies the GELU activation function
from `torch.nn.functional`.
+1 -2
View File
@@ -6,8 +6,7 @@ import functools
class PtfLeakyReLU:
"""
Ptf LeakyReLU:
A PyTorch wrapper for the LeakyReLU activation function.
The LeakyReLU activation function.
This class provides a callable that applies the LeakyReLU activation function
from `torch.nn.functional`.
+1 -1
View File
@@ -7,7 +7,7 @@ log_softmax_last_axis = functools.partial(torch.nn.functional.log_softmax, dim=-
class PtfLogSoftmax:
"""
A PyTorch wrapper for the log_softmax activation function.
The log softmax activation function.
This class provides a callable that applies the log_softmax activation function
from `torch.nn.functional`.
+1 -2
View File
@@ -5,8 +5,7 @@ import torch.nn.functional
class PtfReLU:
"""
Ptf ReLU:
A PyTorch wrapper for the ReLU activation function.
The ReLU activation function.
This class provides a callable that applies the ReLU activation function
from `torch.nn.functional`.
+1 -1
View File
@@ -4,7 +4,7 @@ import torch.nn.functional
class PtfSigmoid:
"""
A PyTorch wrapper for the sigmoid activation function.
The sigmoid activation function.
This class provides a callable that applies the sigmoid activation function
from `torch.nn.functional`.
+1 -2
View File
@@ -5,8 +5,7 @@ import torch.nn.functional
class PtfSiLU:
"""
Ptf SiLU:
A PyTorch wrapper for the SiLU activation function.
The SiLU activation function.
This class provides a callable that applies the SiLU activation function
from `torch.nn.functional`.
+1 -1
View File
@@ -6,7 +6,7 @@ softmax_last_axis = functools.partial(torch.nn.functional.softmax, dim=-1)
class PtfSoftmax:
"""
A PyTorch wrapper for the softmax activation function.
The softmax activation function.
This class provides a callable that applies the softmax activation function
from `torch.nn.functional`.
+1 -2
View File
@@ -5,8 +5,7 @@ import torch.nn.functional
class PtfSoftplus:
"""
Ptf Softplus:
A PyTorch wrapper for the Softplus activation function.
The Softplus activation function.
This class provides a callable that applies the Softplus activation function
from `torch.nn.functional`.
+1 -1
View File
@@ -4,7 +4,7 @@ import torch.nn.functional
class PtfTanh:
"""
A PyTorch wrapper for the tanh activation function.
The tanh activation function.
This class provides a callable that applies the tanh activation function
from `torch.nn.functional`.