import torchx = torch.randn(2, 3)x = x.cuda() print (x)#最简单的cuda使用,但是感觉好慢啊 转载于:https://www.cnblogs.com/zhangbo2008/p/8562563.html