Skip to content

raghavmallampalli/torch_reference

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

5 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

PyTorch Learning Repository

This repository contains comprehensive PyTorch tutorials and quick reference materials for deep learning development.

πŸ“š Main Content

πŸ“– PyTorch Quick Reference Notebook

Essential operations for daily PyTorch development.

This section provides a comprehensive reference for common PyTorch tensor operations, from basic creation to advanced techniques.

  • Tensor Creation: Basic tensors, random tensors, and data type conversion
  • Tensor Manipulation: Reshaping, indexing, and slicing
  • Mathematical Operations: Arithmetic, matrix operations, and statistics
  • Gradient Operations: Automatic differentiation and gradient computation
  • Device Operations: CPU/GPU management
  • Advanced Operations: Concatenation, stacking, permutation, masking, gather and scatter, etc.
  • Memory Optimization: In-place operations, memory sharing, and gradient checkpointing
  • Time Series Operations: Rolling windows, moving averages, and sequence handling
  • Performance Tips: Best practices for efficient PyTorch usage
  • Debugging: Tensor inspection and common issues
  • Practical Examples: Time series normalization, attention mechanisms, and efficient matrix operations
  • einops for readable torch ops

Key highlights of advanced features:

  1. Memory optimization techniques including gradient checkpointing
  2. Efficient matrix operations for 2D tensors
  3. Attention mechanism implementations with temperature scaling
  4. Batch processing with automatic padding

Use these operations as building blocks for your PyTorch projects!

πŸ”¬ Additional Resources

πŸ“ License

This project is open source and available under the MIT License.

About

No description, website, or topics provided.

Resources

Stars

5 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors