The divisor_override argument isn’t available in nn.AvgPool3d in PyTorch 1.1.0 1 and was added in 1.2.0, so I’m unsure why your code snippet would try to call it after you’ve updated the PyTorch version.
Could you check what’s causing the AttributeError?