lleybey

Results 1 comments of lleybey

> @rezraz1你好,我测试基准数据集出现AttributeError: module 'torch.backends' has no attribute 'mps',请问怎么解决? 可能是你torch版本太高,在你的版本中已经删除了mps这个参数,可以试试将关于mps的代码改为 if self.cpu: self.device = torch.device('cpu') else: if torch.cuda.is_available(): self.device = torch.device('cuda') else: self.device = torch.device('cpu')