clip_grad_norm_performs gradient clipping, in order to mitigate the problem of exploding gradients.BatchNorm2dapplies Batch Normalization (for the same reason - mitigate the problem of exploding gradients)I know that
BatchNorm2dhas 2 parameters to learn (mean and standard deviation).
When we should choose clip_grad_norm_ and when we should prefer BatchNorm2d?