model.parameters() return a generator.
An example:
def init_function(module):
    if isinstance(module, nn.Conv2d):
        nn.init.normal(module.weight, mean=0, std=1)

net = YourNet()
net.apply(init_function)