I don’t know how exactly it affects, but it should have some effect. As to initialization, I think we can use torch.nn.init functions instead: torch.nn.init — PyTorch 1.8.1 documentation.
I’m not sure, but kaiming_uniform or kaiming_normal would be suitable for resnet architecture.