I am looking to modify a pretrained resnet with a non inplace version of batchnorm2D since this is causing me problems when I run in distributed mode (runtimerror saying that grad computation has not been possible due to inplace operation)
Error detected in CudnnBatchNormBackward
I instantiate the model the vanilla way, no magic:
Batchnorm layers don’t have an inplace argument, so could you post an executable code snippet which reproduces this issue for further debugging as well as the output of python -m torch.utils.collect_env?