Git Product home page Git Product logo

hello_pytorch's Introduction

環境建立


Step 1. 建立 Pytorch 虛擬環境

$ conda create --name pytorch python=3.5

Step 2. 啟動 Pytorch 虛擬環境

$ source activate pytorch

# 若要結束環境
# $ source deactivate pytorch

Step 3. 參考 官方網站 Get Started 安裝 pytorch

$ conda install pytorch torchvision -c soumith
# macOS Binaries dont support CUDA, install from source if CUDA is needed

Step 4. 在 Jupyter 增加 Kernel: pytorch

python -m ipykernel install --user --name=pytorch

# 確認 Jupyter Kernel
# $ jupyter kernelspec list

# 如果增加 Kernel 過程中,發生 No module named ipykernel
# $ conda install ipykernel

Final. 啟用 jupyter notebook

$ juputer notebook

hello_pytorch's People

Contributors

temisrei avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.