I was getting this error AttributeError: ‘int’ object has no attribute ‘requires_grad’ even hit and trialed i’m not getting over it. I want to know the ground truth , of how does this error occur?
What are the list of  undesirable conditions that this type of error happens?
Thank you for your kind help