在加载模型的语句上,增加map_location='cuda:0’
loaded_state = torch.load(model_path+seq_to_seq_test_model_fname,map_location='cuda:0')
在加载模型的语句上,增加map_location='cuda:0’
loaded_state = torch.load(model_path+seq_to_seq_test_model_fname,map_location='cuda:0')