Hi@MengWel,
You need to install the torch library first in your system. Because numpy_type_map comes with torch library. You can use the below command to download the torch library.
$ pip install http://download.pytorch.org/whl/cpu/torch-0.4.0-cp36-cp36m-win_amd64.whl
Collecting torch==0.4.0 Downloading http://download.pytorch.org/whl/cpu/torch-0.4.0-cp36-cp36m win_amd64.whl (31.8 MB)
|████████████████████████████████| 31.8 MB 298 kB/s Installing collected packages: torch
Successfully installed torch-0.4.0
Now you can able to import your package.
C:\Users\Nadeem Akhter>python
Python 3.6.10 |Anaconda, Inc.| (default, May 7 2020, 19:46:08) [MSC v.1916 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import torch
>>> from torch.utils.data.dataloader import numpy_type_map
I hope this will give you some ideas.