摘要: 学习官方60分钟教程时,尝试把张量移到GPU tensor = torch.rand(3, 4) # We move our tensor to the GPU if available if torch.cuda.is_available(): tensor = tensor.to('cuda') 阅读全文
posted @ 2021-05-31 23:19 奥巴荣 阅读(10194) 评论(0) 推荐(1)