Updated docstring for Pt Linspace.
This commit is contained in:
@@ -243,7 +243,7 @@
|
||||
| [Pt From Numpy](pt_from_numpy.md) | Converts a NumPy ndarray to a PyTorch tensor while preserving its data type. |
|
||||
| [Pt Full](pt_full.md) | Creates a PyTorch tensor filled with a specified value using the size entered in the text field. |
|
||||
| [Pt Int Create](pt_int_create.md) | Creates a PyTorch tensor with 32-bit integer |
|
||||
| [Pt Linspace](pt_linspace.md) | Creates a PyTorch tensor using `torch.arange` with the specified start, end, and steps values. |
|
||||
| [Pt Linspace](pt_linspace.md) | Creates a PyTorch tensor using `torch.linspace` with the specified start, end, and steps values. |
|
||||
| [Pt Ones](pt_ones.md) | Creates a PyTorch tensor of ones using the size entered in the text field. |
|
||||
| [Pt Rand](pt_rand.md) | Creates a PyTorch tensor with values sampled from a uniform distribution |
|
||||
| [Pt Rand Int](pt_rand_int.md) | Creates a PyTorch tensor filled with random integers within a specified range using the size entered in the text field. |
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
# Pt Linspace
|
||||
Creates a PyTorch tensor using `torch.arange` with the specified start, end, and steps values.
|
||||
Creates a PyTorch tensor using `torch.linspace` 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.
|
||||
|
||||
@@ -12,7 +12,7 @@ from cda.utils import str_to_number, str_to_number_with_default
|
||||
|
||||
class PtLinspace:
|
||||
"""
|
||||
Creates a PyTorch tensor using `torch.arange` with the specified start, end, and steps values.
|
||||
Creates a PyTorch tensor using `torch.linspace` 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.
|
||||
|
||||
Reference in New Issue
Block a user