uhauha2929 / examples

132 stars 62 forks source link

pytorch1.2出现编码问题 #2

Open MQ99 opened 5 years ago

MQ99 commented 5 years ago

model = AttnClassifier(len(TEXT.vocab), embedding_dim, hidden_dim).to(device)

请问这一句报错的原因是什么: pytorch1.2

File "E:\软件\python\lib\site-packages\torch\nn\modules\module.py", line 432, in to return self._apply(convert) File "E:\软件\python\lib\site-packages\torch\nn\modules\module.py", line 208, in _apply module._apply(fn) File "E:\软件\python\lib\site-packages\torch\nn\modules\rnn.py", line 124, in _apply self.flatten_parameters() File "E:\软件\python\lib\site-packages\torch\nn\modules\rnn.py", line 97, in flatten_parameters if not any_param.is_cuda or not torch.backends.cudnn.is_acceptable(any_param): File "E:\软件\python\lib\site-packages\torch\backends\cudnn__init.py", line 118, in is_acceptable if _libcudnn() is None: File "E:\软件\python\lib\site-packages\torch\backends\cudnn\init.py", line 61, in _libcudnn lib = find_cudnn_windows_lib() File "E:\软件\python\lib\site-packages\torch\backends\cudnn\init__.py", line 45, in find_cudnn_windows_lib out = out.decode().strip() UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc8 in position 3: invalid continuation byte