Some resources for Pytorch
pytorch/__init__.pyi is the file to solve the problem:
there is no code hints for Pytorch in Pycharm.
Steps:
- Upgrade Pycharm to 2019.1.1
- Download
pytorch/pytorch_version/__init__.pyi - Upgrade Pytorch to [pytorch_version] (the
__init__.pyiin this project is modified from the__init__.pyiof Pytorch [pytorch_version]) - Replace
site-packages/torch/__init__.pyiwith download one.
caffe/__init__.pyi is the file to solve the problem:
there is no code hints for caffe in Pycharm.
Steps:
-
Upgrade Pycharm to 2019.1.1
-
Download
caffe/__init__.pyi -
Copy
caffe/__init__.pyito pycaffe directory.- If you already built caffe,
copy
caffe/__init__.pyitopath_to_caffe/python/caffe. - If not, build caffe by guiding doc:
How to build caffe
, then copy
caffe/__init__.pyito/opt/caffe/python/caffe.
- If you already built caffe,
copy
-
Remove all
*.pycfile inpath_to_caffe/python/caffe.cd path_to_caffe/python/caffe rm *.pyc