Skip to content

Commit 1627d20

Browse files
orrbluesoumith
authored andcommitted
Grammar fixes in Blitz tutorials (pytorch#255)
* fix grammar * fix grammar
1 parent 885c82c commit 1627d20

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

beginner_source/blitz/autograd_tutorial.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
To prevent tracking history (and using memory), you can also wrap the code block
3232
in ``with torch.no_grad():``. This can be particularly helpful when evaluating a
3333
model because the model may have trainable parameters with `requires_grad=True`,
34-
but we don't need the gradients.
34+
but for which we don't need the gradients.
3535
3636
There’s one more class which is very important for autograd
3737
implementation - a ``Function``.

beginner_source/blitz/tensor_tutorial.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
print(x)
4949

5050
###############################################################
51-
# or create a tensor basing on existing tensor. These methods
51+
# or create a tensor based on an existing tensor. These methods
5252
# will reuse properties of the input tensor, e.g. dtype, unless
5353
# new values are provided by user
5454

0 commit comments

Comments
 (0)