Solved by Kabir_Nagrecha in post #2 
              
              
                Just found this…Frequently Asked Questions — PyTorch 1.7.0 documentation 
My code worked this whole time…7-8 hours trying to debug it…and now I found this