Useful Links
Computer Science
Artificial Intelligence
Deep Learning
PyTorch Library
1. Introduction to PyTorch
2. Tensors: The Foundation
3. Tensor Operations and Manipulation
4. Automatic Differentiation
5. Neural Network Construction
6. Data Handling and Processing
7. Model Training and Optimization
8. Model Persistence and Deployment
9. Advanced PyTorch Features
10. PyTorch Ecosystem Integration
Automatic Differentiation
Computational Graphs
Graph Construction
Dynamic Graph Building
Forward Pass Graph Creation
Graph Components
Leaf Nodes
Intermediate Nodes
Function Nodes
Graph Traversal
Topological Ordering
Backward Pass Execution
Gradient Computation Fundamentals
The Chain Rule
Mathematical Foundation
Computational Implementation
Jacobian Matrices
Definition and Properties
Vector-Jacobian Products
Gradient Accumulation
Multiple Backward Passes
Gradient Storage
The requires_grad System
Enabling Gradient Tracking
Tensor-level Control
Default Behaviors
Gradient Propagation
Automatic Propagation Rules
Stopping Gradient Flow
Leaf Tensor Concepts
User-created Tensors
Parameter Tensors
Backward Pass Mechanics
The backward() Method
Scalar Output Backward
Vector Output Backward
Gradient Arguments
Gradient Computation
Automatic Gradient Calculation
Custom Gradient Functions
Gradient Storage
The grad Attribute
Gradient Accumulation Behavior
Controlling Gradient Computation
Context Managers
torch.no_grad()
torch.enable_grad()
torch.set_grad_enabled()
Tensor Detachment
detach() Method
Breaking Gradient Flow
In-place Operations
Gradient Tracking with In-place Ops
Potential Issues and Solutions
Advanced Gradient Topics
Higher-order Derivatives
Second Derivatives
create_graph Parameter
Custom Autograd Functions
Function Class Definition
Forward and Backward Methods
Gradient Checkpointing
Memory-efficient Training
Trade-offs and Implementation
Common Issues and Debugging
Gradient Flow Problems
Vanishing Gradients
Exploding Gradients
Runtime Errors
Leaf Tensor Modification
Graph Retention Issues
Debugging Techniques
Gradient Checking
Graph Visualization
Previous
3. Tensor Operations and Manipulation
Go to top
Next
5. Neural Network Construction