Could you check, if the line of code, which is raising this error, uses any numpy() calls?
If so, replace it with tensor.detach().numpy() as suggested in the error message.
This error was added a while ago to make sure the user is aware, that Autograd won’t be able to track the numpy operations.