CodoRaven
  • AI
  • Web Development
  • Tutorials
    • OpenCV vs Pillow

PyTorch

PyTorch DataLoader Explained: Datasets, Batches, and Image Folders

PyTorch DataLoader Explained: Datasets, Batches, and Image Folders

PyTorch DataLoader explained: build a Dataset, batch and shuffle CIFAR-10, use transforms.v2, speed up with num_workers, and load your own image folder.

12 November, 2026
PyTorch
AIDeep LearningMachine LearningPythonPyTorch
PyTorch Autograd: How backward() Builds Gradients

PyTorch Autograd: How backward() Builds Gradients

PyTorch autograd explained: requires_grad, the computational graph, how backward() applies the chain rule, why zero_grad matters, and torch.no_grad.

12 November, 2026
PyTorch
AIDeep LearningMachine LearningNeural NetworksPythonPyTorch
PyTorch Tensors Explained: Shapes, Broadcasting, and Images as Arrays

PyTorch Tensors Explained: Shapes, Broadcasting, and Images as Arrays

Learn what a PyTorch tensor is: shape, dtype, device, indexing, view vs reshape, broadcasting, and how to turn images into N, C, H, W tensors and back.

12 November, 2026
PyTorch
AIDeep LearningMachine LearningPythonPyTorch
PyTorch Tutorial 2026: From Tensors to Tiny Diffusion

PyTorch Tutorial 2026: From Tensors to Tiny Diffusion

Free PyTorch tutorial for 2026: install PyTorch 2.15, check your GPU, make your first tensor, and start building a tiny diffusion transformer from scratch.

12 November, 2026
PyTorch
AIDeep LearningDiffusion ModelGenerative ModelMachine LearningNeural NetworksPythonPyTorch

Recent Posts

  • Train and Sample Like 2026: Logit-Normal Steps, EMA, and Few-Step FlowNovember 12, 2026
  • MMDiT Joint Attention in PyTorch: Two Streams, One GeneratorNovember 12, 2026
  • adaLN-Zero and Classifier-Free Guidance in PyTorchNovember 12, 2026
  • RMSNorm, QK-Norm, SwiGLU, and 2D RoPE in a Tiny DiTNovember 12, 2026
  • torch.compile, Mixed Precision, and SDPA: Speed Up TinyDiTNovember 12, 2026

CodoRaven

Learn Coding, AI and Web Development

© CodoRaven 2026
Blog
  • AI
  • Web Development
Tutorials
  • OpenCV vs Pillow
Useful Links
  • Contact
  • About