[resolved] AttributeError: module 'torch.autograd' has no attribute 'grad'

gradients = autograd.grad(outputs=disc_interpolates, inputs=interpolates, AttributeError: module 'torch.autograd' has no attribute 'grad'

after a fresh installation from soure, the problem disappeared.