在Mac上使用是记得加 map_location=torch.device('cpu')

#1
by wTao1215 - opened

在mac上使用很方便,在torch.load时增加map_location=torch.device('cpu')
spk = torch.load('your_path_to_/seed_2066_restored_emb.pt',map_location=torch.device('cpu'))

Sign up or log in to comment