Skip to content

Commit d2d0979

Browse files
Update example header for .sgn() in 2D tensor
Clarify the description of the second example for .sgn() usage.
1 parent b87d733 commit d2d0979

File tree

1 file changed

+1
-1
lines changed
  • content/pytorch/concepts/tensor-operations/terms/sgn

1 file changed

+1
-1
lines changed

content/pytorch/concepts/tensor-operations/terms/sgn/sgn.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ The output of this code is:
5353
tensor([-1., -1., 0., 1., 1.])
5454
```
5555

56-
## Example 2: Using `.sgn()` with a 2D Tensor
56+
## Example 2: Applying `.sgn()` element-wise to a 2D tensor
5757

5858
In this example, `.sgn()` is applied to a 2D tensor:
5959

0 commit comments

Comments
 (0)