Skip to content

Consider using bias=False when using batchnorm#3

Open
timlueg wants to merge 1 commit intoLAION-AI:mainfrom
timlueg:no-bias-batchnorm
Open

Consider using bias=False when using batchnorm#3
timlueg wants to merge 1 commit intoLAION-AI:mainfrom
timlueg:no-bias-batchnorm

Conversation

@timlueg
Copy link

@timlueg timlueg commented Oct 20, 2022

If I'm not mistaken the bias is not needed in these conv. and linear layers since there are followed by batch norm.

See original batch norm paper or https://pytorch.org/tutorials/recipes/recipes/tuning_guide.html#disable-bias-for-convolutions-directly-followed-by-a-batch-norm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant