Summary of Common Tricks in PyTorch
Author: z.defying Reprinted from: Datawhale Table of Contents: 1 Specify GPU ID 2 View Model Layer Output Details 3 Gradient Clipping 4 Expand Dimensions of a Single Image 5 One-Hot Encoding 6 Prevent Out of Memory When Validating Model 7 Learning Rate Decay 8 Freeze Parameters of Certain Layers 9 Use Different Learning Rates for … Read more