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

conv about fuse_scale #68

Open
disanda opened this issue Dec 21, 2020 · 0 comments
Open

conv about fuse_scale #68

disanda opened this issue Dec 21, 2020 · 0 comments

Comments

@disanda
Copy link

disanda commented Dec 21, 2020

I found there is one conv of each block who added fuse_scale, the trick implemented by transform_kernel.
(see kernel_weight in lreq.py line 142):
'''
if self.transform_kernel:
w = F.pad(w, (1, 1, 1, 1), mode='constant')
w = w[:, :, 1:, 1:] + w[:, :, :-1, 1:] + w[:, :, 1:, :-1] + w[:, :, :-1, :-1]
'''

I wonder what the trick uses. can anyone explain it?

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