PyTorch Recipes¶
- defining_a_neural_network.py
Defining a Neural Network in PyTorch https://pytorch.org/tutorials/recipes/recipes/defining_a_neural_network.html
- what_is_state_dict.py
What is a state_dict in PyTorch https://pytorch.org/tutorials/recipes/recipes/what_is_state_dict.html
- saving_and_loading_models_for_inference.py
Saving and loading models for inference in PyTorch https://pytorch.org/tutorials/recipes/recipes/saving_and_loading_models_for_inference.html
- custom_dataset_transforms_loader.py
Developing Custom PyTorch Dataloaders https://pytorch.org/tutorials/recipes/recipes/custom_dataset_transforms_loader.html
- Captum_Recipe.py
Model Interpretability using Captum https://pytorch.org/tutorials/recipes/recipes/Captum_Recipe.html
- dynamic_quantization.py
Dynamic Quantization https://pytorch.org/tutorials/recipes/recipes/dynamic_quantization.html
- warmstarting_model_using_parameters_from_a_different_model.py
Warmstarting models using parameters from different model https://pytorch.org/tutorials/recipes/recipes/warmstarting_model_using_parameters_from_a_different_model.html
- zeroing_out_gradients.py
Zeroing out gradients https://pytorch.org/tutorials/recipes/recipes/zeroing_out_gradients.html
- mobile_perf.py
PyTorch Mobile Performance Recipes https://pytorch.org/tutorials/recipes/mobile_perf.html
- amp_recipe.py
Automatic Mixed Precision https://pytorch.org/tutorials/recipes/amp_recipe.html
- regional_compilation.py
- Reducing torch.compile cold start compilation time with regional compilation
https://pytorch.org/tutorials/recipes/regional_compilation.html

Warmstarting model using parameters from a different model in PyTorch

Extension points in nn.Module for load_state_dict and tensor subclasses