You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
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?
The text was updated successfully, but these errors were encountered: