Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

why batchnormalization after qkv transform? #33

Open
lkqnaruto opened this issue Sep 27, 2021 · 0 comments
Open

why batchnormalization after qkv transform? #33

lkqnaruto opened this issue Sep 27, 2021 · 0 comments

Comments

@lkqnaruto
Copy link

I wonder why batchnormalization after qkv transform? is it because of the covariate shift issue?

self.qkv_transform = qkv_transform(in_planes, out_planes * 2, kernel_size=1, stride=1,
padding=0, bias=False)
self.bn_qkv = nn.BatchNorm1d(out_planes * 2)
self.bn_similarity = nn.BatchNorm2d(groups * 3)

How does batchnorm2D work for calculating the similarity score? It really confused me.

Thanks

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

No branches or pull requests

1 participant