count running_mean and running_var params for BN - #88
Conversation
For batch norm layers, count the running_var and running_mean parameters in batch_norm layers
According to https://pytorch.org/docs/stable/_modules/torch/nn/modules/batchnorm.html, we need to check the attribute track_running_stats of batchnorm layer to see if running_mean and running_vars are stored as parameters
|
This isn't included since running_mean and running_var are what are used to determine what the learnable parameters (in this came beta and gamma). They aren't really learnable parameters. Here are docs for reference: |
|
Thanks @Naireen
So, my understanding is that we do need to store |
For batch norm layers, count the running_var and running_mean parameters in batch_norm layers