No module named 'torchvision.models.quantization'

>>> import torchvision.models.quantization as models
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'torchvision.models.quantization'
>>> torchvision.__version__
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
NameError: name 'torchvision' is not defined
>>> import torchvision
>>> torchvision.__version__
'0.4.2+cpu'

What is the version of torchvision needed in this toturial

Can you try version 0.5? It could work on my local.

>>> import torchvision
>>> torchvision.__version__
'0.5.0a0+333af7a'
>>> import torchvision.models.quantization as models

Thank you for you reply, but when I run pip install torchvision==0.5.0, I got the following error:

Looking in indexes: http://mirrors.aliyun.com/pypi/simple/
ERROR: Could not find a version that satisfies the requirement torchvision==0.5.0 (from versions: 0.1.6, 0.1.7, 0.1.8, 0.1.9, 0.2.0, 0.2.1, 0.2.2, 0.2.2.post2, 0.2.2.post3, 0.3.0, 0.4.0, 0.4.1, 0.4.2)
ERROR: No matching distribution found for torchvision==0.5.0`

Should I build torchvision from source?

cc @lly-zero-one @raghuramank100

@fmassa: Can you help answer this question?