Could you post the complete stack trace, please?
Based on the posted code, nothing should have changes, as you are reassigning a new conv layer to the pretrained model (and thus removing the pretrained layer), and just use it as self.conv.