The initial version of my code is rather popular in many Chinese blogs and forums about PyTorch, but I am not sure why almost nobody has reported issues about these mistaken code in Chinses forums; it will be really nice of you if you can help identify the mistakes in the code (especially the reason why using list rather set can raise an error) and I will send the hyperlink and translated version of this issue there to help people not make similar mistakes.