Hey guys, I’m a newbie to pytorch. I want to ask how to check if a module (when iterating over self.modules()) is in the state_dict of a pretrained model or not. I’m building up an autoencoder with a pretrained encoder, so I want to efficiently init the network by only init weights and biais of layers not in the pretrained encoder. Hope I make it clear. Any help would be appreciated, thank you!