call `zero_grad` in foreach/fused optimizers tests (#94724)
the tests calling this method haven't failed because `iter` is a built-in function's name
Signed-off-by: Masaki Kozuki <mkozuki@nvidia.com>
Pull Request resolved: https://github.com/pytorch/pytorch/pull/94724
Approved by: https://github.com/Skylion007