Solved by Xinzhu-Fang in post #2 
              
              
                I already screwed up the environment here that this error “RuntimeError: cuda runtime error (77) : an illegal memory access was encountered” was returned on everything. I screwed it up by not following the guideline here: