Thanks for answers, the reason why the location error has been shown was the version issue of the pkgs related to torch. I manually upgraded all of torch family and the error has been gone. The OS I use is jupyter with win10 and the environment is restricted by tons of firewalls due to internal security.