一、TypeError: _resolve_type_from_object(): incompatible function arguments. The following argument types are supported:
1. (arg0: object, arg1: torch._C._jit_tree_views.SourceRange, arg2: Callable[[str], function]) -> torch._C.Type
Invoked with: typing.Union[int, NoneType], None, <function try_ann_to_type..fake_rcb at 0x7f970e5a7488>
这是在安装torchvision时报的错, torch版本为cpu, 按照torch官网选择的命令,结果torchvison版本不匹配,
解决方案:安装旧版本的torch-cpu
sudo pip3 install torch==1.2.0+cpu torchvision==0.4.0+cpu -f https://download.pytorch.org/whl/torch_stable.html