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

Commits on Feb 20, 2024

  1. Update 00_pytorch_fundamentals.ipynb

    line 1524,
      "| **Matrix multiplication** | `[1*1 + 2*2 + 3*3]` = `[14]` | `tensor.matmul(tensor)` |\n"
    
    tensor.matmul(tensor) is replaced with torch.matmul(tensor)
    mazarrazi committed Feb 20, 2024
    Configuration menu
    Copy the full SHA
    285a500 View commit details
    Browse the repository at this point in the history
  2. removed a deprecated method and corrected it accordingly

    The torch.Tensor.type() method is deprecated. It was used to change the data type of a tensor. However, this method is no longer recommended because it can lead to unexpected results.
    
    
    Changed the code snippet from using torch.Tensor.type(dtype=None) to  tensor = tensor.to(torch.float32) for changing the datatype of tensors.  @ line 2189 under the "Change tensor datatype" heading
    
    The link to the documentation has been updated accordingly.
    mazarrazi committed Feb 20, 2024
    Configuration menu
    Copy the full SHA
    e94b347 View commit details
    Browse the repository at this point in the history
  3. removed a deprecated method and corrected it accordingly

    The torch.Tensor.type() method is deprecated. It was used to change the data type of a tensor. However, this method is no longer recommended because it can lead to unexpected results.
    
    Changed the code snippet from using `torch.Tensor.type(dtype=None)` to  `tensor = tensor.to(torch.float32)` for changing the datatype of tensors.  
    @ line 2189 under the "Change tensor datatype" heading
    
    The link to the documentation has been updated accordingly.
    mazarrazi committed Feb 20, 2024
    Configuration menu
    Copy the full SHA
    a309638 View commit details
    Browse the repository at this point in the history
  4. removed a deprecated method

    The torch.Tensor.type() method is deprecated. It was used to change the data type of a tensor. However, this method is no longer recommended because it can lead to unexpected results.
    
    Removed the code snippet `torch.Tensor.type(dtype=None)` 
    @ line 2189
    mazarrazi committed Feb 20, 2024
    Configuration menu
    Copy the full SHA
    0b83446 View commit details
    Browse the repository at this point in the history