Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

removed a deprecated method and corrected a typo in notebook 00 #833

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
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