1. How to check if a tensor is on cuda or send it to cuda in Pytorch

    How to check if a tensor is on cuda or send it to cuda in Pytorch