Solution by @Brando_Miranda did not work for me. I had to add an extra loop:
for layers in model.children():
    for layer in layers:
        if hasattr(layer, 'reset_parameters'):
            layer.reset_parameters()