Skip to content

Commit 9b6de8f

Browse files
authored
Fix shape tuple syntax in tensorqs_tutorial.py (#3843)
removed unnecessary coma from the 'shape' tuple ;) ## Description removed an unnecessary coma from a tuple, no issue has been raised for this so I didn't reference any. ## Checklist <!--- Make sure to add `x` to all items in the following checklist: --> - [ ] The issue that is being fixed is referred in the description (see above "Fixes #ISSUE_NUMBER") - [x] Only one issue is addressed in this pull request - [ ] Labels from the issue that this PR is fixing are added to this pull request - [x] No unnecessary issues are included into this pull request.
1 parent 49c2c81 commit 9b6de8f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

beginner_source/basics/tensorqs_tutorial.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
#
6464
# ``shape`` is a tuple of tensor dimensions. In the functions below, it determines the dimensionality of the output tensor.
6565

66-
shape = (2,3,)
66+
shape = (2,3)
6767
rand_tensor = torch.rand(shape)
6868
ones_tensor = torch.ones(shape)
6969
zeros_tensor = torch.zeros(shape)

0 commit comments

Comments
 (0)