Skip to content

Commit 86abcf4

Browse files
authored
Update introyt1_tutorial.py (#1789)
Fixes #1762.
1 parent eee7564 commit 86abcf4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

beginner_source/introyt/introyt1_tutorial.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@
101101
# Here’s a small sample of the mathematical operations available:
102102
#
103103

104-
r = torch.rand(2, 2) - 0.5 * 2 # values between -1 and 1
104+
r = (torch.rand(2, 2) - 0.5) * 2 # values between -1 and 1
105105
print('A random matrix, r:')
106106
print(r)
107107

0 commit comments

Comments
 (0)