Skip to content

Commit

Permalink
Two minor typos (#845)
Browse files Browse the repository at this point in the history
  • Loading branch information
milstan committed Nov 27, 2023
1 parent a9d7221 commit ea3aacc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions 01-tensor_tutorial.ipynb
Expand Up @@ -850,7 +850,7 @@
"outputs": [],
"source": [
"# In-place multiplication of all elements by 2 for tensor n\n",
"# Because n is essentiall n_np, not a clone, this affects n_np\n",
"# Because n is essentially n_np, not a clone, this affects n_np\n",
"n.mul_(2)\n",
"n_np"
]
Expand All @@ -868,7 +868,7 @@
"metadata": {},
"outputs": [],
"source": [
"# Creates two tensor of size 1x4\n",
"# Creates two tensors of size 1x4\n",
"a = torch.Tensor([[1, 2, 3, 4]])\n",
"b = torch.Tensor([[5, 6, 7, 8]])\n",
"print(a.size(), b)"
Expand Down

0 comments on commit ea3aacc

Please sign in to comment.