Skip to content

Mannix1994/PythonResources

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Introduction

Some resources for Pytorch

pytorch/__init__.pyi

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__.pyi in this project is modified from the __init__.pyi of Pytorch [pytorch_version])
  • Replace site-packages/torch/__init__.pyi with download one.

caffe/__init__.pyi

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__.pyi to pycaffe directory.

    • If you already built caffe, copy caffe/__init__.pyi to path_to_caffe/python/caffe.
    • If not, build caffe by guiding doc: How to build caffe , then copy caffe/__init__.pyi to /opt/caffe/python/caffe.
  • Remove all *.pyc file in path_to_caffe/python/caffe.

    cd path_to_caffe/python/caffe
    rm *.pyc

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages