Skip to content

Commit 20a51fd

Browse files
committed
all typos done
1 parent dd689e9 commit 20a51fd

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

00_pytorch_fundamentals.ipynb

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -984,7 +984,7 @@
984984
"\n",
985985
"Some are specific for CPU and some are better for GPU.\n",
986986
"\n",
987-
"Getting to know which is which can take some time.\n",
987+
"Getting to know which one can take some time.\n",
988988
"\n",
989989
"Generally if you see `torch.cuda` anywhere, the tensor is being used for GPU (since Nvidia GPUs use a computing toolkit called CUDA).\n",
990990
"\n",
@@ -1901,7 +1901,7 @@
19011901
"id": "bXKozI4T0hFi"
19021902
},
19031903
"source": [
1904-
"Without the transpose, the rules of matrix mulitplication aren't fulfilled and we get an error like above.\n",
1904+
"Without the transpose, the rules of matrix multiplication aren't fulfilled and we get an error like above.\n",
19051905
"\n",
19061906
"How about a visual? \n",
19071907
"\n",
@@ -1988,7 +1988,7 @@
19881988
"id": "zIGrP5j1pN7j"
19891989
},
19901990
"source": [
1991-
"> **Question:** What happens if you change `in_features` from 2 to 3 above? Does it error? How could you change the shape of the input (`x`) to accomodate to the error? Hint: what did we have to do to `tensor_B` above?"
1991+
"> **Question:** What happens if you change `in_features` from 2 to 3 above? Does it error? How could you change the shape of the input (`x`) to accommodate to the error? Hint: what did we have to do to `tensor_B` above?"
19921992
]
19931993
},
19941994
{
@@ -2188,7 +2188,7 @@
21882188
"\n",
21892189
"You can change the datatypes of tensors using [`torch.Tensor.type(dtype=None)`](https://pytorch.org/docs/stable/generated/torch.Tensor.type.html) where the `dtype` parameter is the datatype you'd like to use.\n",
21902190
"\n",
2191-
"First we'll create a tensor and check it's datatype (the default is `torch.float32`)."
2191+
"First we'll create a tensor and check its datatype (the default is `torch.float32`)."
21922192
]
21932193
},
21942194
{
@@ -2289,7 +2289,7 @@
22892289
}
22902290
],
22912291
"source": [
2292-
"# Create a int8 tensor\n",
2292+
"# Create an int8 tensor\n",
22932293
"tensor_int8 = tensor.type(torch.int8)\n",
22942294
"tensor_int8"
22952295
]
@@ -3139,7 +3139,7 @@
31393139
"source": [
31403140
"Just as you might've expected, the tensors come out with different values.\n",
31413141
"\n",
3142-
"But what if you wanted to created two random tensors with the *same* values.\n",
3142+
"But what if you wanted to create two random tensors with the *same* values.\n",
31433143
"\n",
31443144
"As in, the tensors would still contain random values but they would be of the same flavour.\n",
31453145
"\n",
@@ -3220,7 +3220,7 @@
32203220
"It looks like setting the seed worked. \n",
32213221
"\n",
32223222
"> **Resource:** What we've just covered only scratches the surface of reproducibility in PyTorch. For more, on reproducibility in general and random seeds, I'd checkout:\n",
3223-
"> * [The PyTorch reproducibility documentation](https://pytorch.org/docs/stable/notes/randomness.html) (a good exericse would be to read through this for 10-minutes and even if you don't understand it now, being aware of it is important).\n",
3223+
"> * [The PyTorch reproducibility documentation](https://pytorch.org/docs/stable/notes/randomness.html) (a good exercise would be to read through this for 10-minutes and even if you don't understand it now, being aware of it is important).\n",
32243224
"> * [The Wikipedia random seed page](https://en.wikipedia.org/wiki/Random_seed) (this'll give a good overview of random seeds and pseudorandomness in general)."
32253225
]
32263226
},

0 commit comments

Comments
 (0)