Indeed, your solution works.
I first tried torch.zeros(5,5).normal_(0.0, 1.0, torch.manual_seed(0)). This also failed and told me I should put the generator first.
The solution is that generator must be a keyworded argument, then it works.