i run it on cmd but it write
D:\code\chatbot\pytorch-chatbot-master\pytorch-chatbot-master\train.py:86: UserWarning: Failed to initialize NumPy: module compiled against API version 0x10 but this version of numpy is 0xe . Check the section C-API incompatibility at the Troubleshooting ImportError section at https://numpy.org/devdocs/user/troubleshooting-importerror.html#c-api-incompatibility for indications on how to solve this problem . (Triggered internally at ..\torch\csrc\utils\tensor_numpy.cpp:84.)
device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
Traceback (most recent call last):
File "D:\code\chatbot\pytorch-chatbot-master\pytorch-chatbot-master\train.py", line 96, in
for (words, labels) in train_loader:
File "C:\Users\user\AppData\Local\Programs\Python\Python310\lib\site-packages\torch\utils\data\dataloader.py", line 633, in next
data = self._next_data()
File "C:\Users\user\AppData\Local\Programs\Python\Python310\lib\site-packages\torch\utils\data\dataloader.py", line 677, in _next_data
data = self._dataset_fetcher.fetch(index) # may raise StopIteration
File "C:\Users\user\AppData\Local\Programs\Python\Python310\lib\site-packages\torch\utils\data_utils\fetch.py", line 54, in fetch
return self.collate_fn(data)
File "C:\Users\user\AppData\Local\Programs\Python\Python310\lib\site-packages\torch\utils\data_utils\collate.py", line 265, in default_collate
return collate(batch, collate_fn_map=default_collate_fn_map)
File "C:\Users\user\AppData\Local\Programs\Python\Python310\lib\site-packages\torch\utils\data_utils\collate.py", line 142, in collate
return [collate(samples, collate_fn_map=collate_fn_map) for samples in transposed] # Backwards compatibility.
File "C:\Users\user\AppData\Local\Programs\Python\Python310\lib\site-packages\torch\utils\data_utils\collate.py", line 142, in
return [collate(samples, collate_fn_map=collate_fn_map) for samples in transposed] # Backwards compatibility.
File "C:\Users\user\AppData\Local\Programs\Python\Python310\lib\site-packages\torch\utils\data_utils\collate.py", line 119, in collate
return collate_fn_map[elem_type](batch, collate_fn_map=collate_fn_map)
File "C:\Users\user\AppData\Local\Programs\Python\Python310\lib\site-packages\torch\utils\data_utils\collate.py", line 171, in collate_numpy_array_fn
return collate([torch.as_tensor(b) for b in batch], collate_fn_map=collate_fn_map)
File "C:\Users\user\AppData\Local\Programs\Python\Python310\lib\site-packages\torch\utils\data_utils\collate.py", line 171, in
return collate([torch.as_tensor(b) for b in batch], collate_fn_map=collate_fn_map)
RuntimeError: Could not infer dtype of numpy.float32
i run it on cmd but it write D:\code\chatbot\pytorch-chatbot-master\pytorch-chatbot-master\train.py:86: UserWarning: Failed to initialize NumPy: module compiled against API version 0x10 but this version of numpy is 0xe . Check the section C-API incompatibility at the Troubleshooting ImportError section at https://numpy.org/devdocs/user/troubleshooting-importerror.html#c-api-incompatibility for indications on how to solve this problem . (Triggered internally at ..\torch\csrc\utils\tensor_numpy.cpp:84.) device = torch.device('cuda' if torch.cuda.is_available() else 'cpu') Traceback (most recent call last): File "D:\code\chatbot\pytorch-chatbot-master\pytorch-chatbot-master\train.py", line 96, in
for (words, labels) in train_loader:
File "C:\Users\user\AppData\Local\Programs\Python\Python310\lib\site-packages\torch\utils\data\dataloader.py", line 633, in next
data = self._next_data()
File "C:\Users\user\AppData\Local\Programs\Python\Python310\lib\site-packages\torch\utils\data\dataloader.py", line 677, in _next_data
data = self._dataset_fetcher.fetch(index) # may raise StopIteration
File "C:\Users\user\AppData\Local\Programs\Python\Python310\lib\site-packages\torch\utils\data_utils\fetch.py", line 54, in fetch
return self.collate_fn(data)
File "C:\Users\user\AppData\Local\Programs\Python\Python310\lib\site-packages\torch\utils\data_utils\collate.py", line 265, in default_collate
return collate(batch, collate_fn_map=default_collate_fn_map)
File "C:\Users\user\AppData\Local\Programs\Python\Python310\lib\site-packages\torch\utils\data_utils\collate.py", line 142, in collate
return [collate(samples, collate_fn_map=collate_fn_map) for samples in transposed] # Backwards compatibility.
File "C:\Users\user\AppData\Local\Programs\Python\Python310\lib\site-packages\torch\utils\data_utils\collate.py", line 142, in
return [collate(samples, collate_fn_map=collate_fn_map) for samples in transposed] # Backwards compatibility.
File "C:\Users\user\AppData\Local\Programs\Python\Python310\lib\site-packages\torch\utils\data_utils\collate.py", line 119, in collate
return collate_fn_map[elem_type](batch, collate_fn_map=collate_fn_map)
File "C:\Users\user\AppData\Local\Programs\Python\Python310\lib\site-packages\torch\utils\data_utils\collate.py", line 171, in collate_numpy_array_fn
return collate([torch.as_tensor(b) for b in batch], collate_fn_map=collate_fn_map)
File "C:\Users\user\AppData\Local\Programs\Python\Python310\lib\site-packages\torch\utils\data_utils\collate.py", line 171, in
return collate([torch.as_tensor(b) for b in batch], collate_fn_map=collate_fn_map)
RuntimeError: Could not infer dtype of numpy.float32