supsup icon indicating copy to clipboard operation
supsup copied to clipboard

About fixing the bias in the layers

Open b224618 opened this issue 2 years ago • 4 comments

Hi,

Thanks a lot for sharing the code. I have a small question. It seems that the bias of the layers are not masked by the score and not freezed either, and I'm confused about this. Is the bias term different from other trainable parameters (weights)?

Thanks!

b224618 avatar May 05 '22 02:05 b224618

Hello,

Thanks for the question! Do you mean in the convs? We are always setting bias=False in the convs (e.g., https://github.com/RAIVNLab/supsup/blob/master/models/builder.py#L29-L66).

mitchellnw avatar May 05 '22 02:05 mitchellnw

Hi,

Thanks for the quick reply! Now I understand, I have misunderstood the code. By the way, I'm still little bit confused why can't the bias be masked in the same way as the weights?

b224618 avatar May 05 '22 02:05 b224618

Yes, it could! I don't know if that would make much of a difference.

mitchellnw avatar May 05 '22 02:05 mitchellnw

Got it! Thanks a lot for your help!

b224618 avatar May 05 '22 02:05 b224618