Skip to content

Commit

Permalink
Merge branch 'master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
Svetlana Karslioglu authored May 10, 2022
2 parents 3be9f2a + 99dd93d commit 5a39404
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion beginner_source/introyt/introyt1_tutorial.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
twos = torch.ones(2, 3) * 2 # every element is multiplied by 2
print(twos)

threes = ones + twos # additon allowed because shapes are similar
threes = ones + twos # addition allowed because shapes are similar
print(threes) # tensors are added element-wise
print(threes.shape) # this has the same dimensions as input tensors

Expand Down

0 comments on commit 5a39404

Please sign in to comment.