Lesson 2 GSD( plot issue)

In lesson-2 SGD, I’m unable to plot the final graph. It throws the below error


What is wrong here?

Thanks,
S.Ajaykumaar

1 Like
3 Likes

At the animate part, changing a to a.detach() works for me.

3 Likes

Thanks. That works. I’ve been googling around but still not sure what it does. Could you explain what .detach() does? or is this something that is covered in great detail in part 2?

1 Like