device = torch.device("cuda:0" if torch.cuda.is_available() else ... 这句话需要写的次数等于需要保存GPU上的tensor变量的个数;一般情况下 ...
確定! 回上一頁