Certified AI Developer (CAID) Introduction to AI CAID
Quiz 4 Question 11 of 20

During the implementation of a custom training loop in PyTorch, why is it necessary to call optimizer.zero_grad() at the start of each training iteration?

Select an answer to reveal the explanation.