No it would not. Switching to eval-mode would not prevent the model’s parameters from being updated in the optimizer. Instead you could freeze them via
for param in adversary.parameters():
    param.requires_grad = False

And setting requires_grad back to True if you want to update the adversary model.