Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions 00_pytorch_fundamentals.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -1521,7 +1521,7 @@
"| Operation | Calculation | Code |\n",
"| ----- | ----- | ----- |\n",
"| **Element-wise multiplication** | `[1*1, 2*2, 3*3]` = `[1, 4, 9]` | `tensor * tensor` |\n",
"| **Matrix multiplication** | `[1*1 + 2*2 + 3*3]` = `[14]` | `tensor.matmul(tensor)` |\n"
"| **Matrix multiplication** | `[1*1 + 2*2 + 3*3]` = `[14]` | `torch.matmul(tensor)` |\n"
]
},
{
Expand Down Expand Up @@ -2186,8 +2186,6 @@
"\n",
"But there's a fix.\n",
"\n",
"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",
"\n",
"First we'll create a tensor and check it's datatype (the default is `torch.float32`)."
]
},
Expand Down