Did you replace the zero_grad method with a list object before?
If not, could you post an executable code snippet, so that we could have a look at this issue?
PS: you can post code snippets by wrapping them into three backticks ```