Add mean_init and var_init parameters to the BatchNorm module #1349
Unanswered
matthias-wright
asked this question in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi all,
Adding
mean_init
andvar_init
parameters to the BatchNorm module would make it easier to load checkpoints from other frameworks. I am currently doing this but themean_init
andvar_init
parameters would make it more convenient, especially for training / fine-tuning.These parameters could work exactly like
bias_init
andscale_init
.Inserting these two lines here:
and then replacing the lambdas here with the
self.mean_init
andself.var_init
would make this a non-breaking change.I am happy to submit a PR if there is interest. What do you think?
Cheers!
Beta Was this translation helpful? Give feedback.
All reactions