Hello World!
Hi, I’m a theme for Astro, a simple starter that you can use to create your website or blog. If you want to know more about how you can customise me, add more posts, and make it your own, click on the GitHub icon link below and it will take you to my repo.
Find me on
Posts
Notes
- PyTorch Basics — dtype conversion, `.item()`, clamp, round, NLL loss, sigmoid, sqrt, in-place updates & `no_grad`, `requires_grad`, `torch.autograd.grad`, one-hot, (n,)↔(n,1)
- PyTorch nn Modules — `nn.Linear`, `nn.Dropout`, custom `nn.Module`, manual weight init
- PyTorch Tensor Indexing: Slicing, Masking, Fancy Indexing — slicing (view) vs boolean masking (flattens) vs integer/fancy indexing; `gather`, `index_select`, `where`, `masked_fill`
- Tensor Memory Layout: Storage, Strides, Contiguity, view/reshape/permute — storage/strides/`data_ptr`, contiguity, `view` vs `reshape`, `permute`/`transpose`, `.contiguous()`
- Joining & Splitting Tensors: cat, stack, split, chunk — `cat` (existing dim) vs `stack` (new dim), `chunk` (count) vs `split` (size), `unbind`
