CertifaiAI / Intro_to_Pytorch

Certifai Training Labs Repository using PyTorch
http://certifai.ai
4 stars 3 forks source link

Chapter 1 #2

Closed jingzhi93 closed 3 years ago

jingzhi93 commented 4 years ago

Here are the improvements for chapter 1:

  1. Move "Basic Mathematical Operations" to the section before "Normal Operations vs Inplace Operations"

  2. I think pointer isn't really a straight forward way to show the in-place ops. We can use the following method: image

  3. Show that we can directly add/subtract/multiply/divide using the mathematical symbols eg +, -, *, /

  4. Replace with a better arrow for Indexing and Slicing

  5. For joining and splitting, try to use tensors that are easily recognizable. image

  6. Under splitting and chunking add a line to show the original tensor image

  7. For view and reshape, try to explain it like [this](https://stackoverflow.com/questions/49643225/whats-the-difference-between-reshape-and-view-in-pytorch#:~:text=The%20semantics%20of%20reshape(),only%20operate%20on%20contiguous%20tensor.)

  8. For exercise, try to fix a seed number so that the expected outputs are able to deliver by the trainees.